package ecg with nix

This commit is contained in:
Quentin Guilloteau 2024-08-29 10:32:54 +02:00
parent 817ec821c5
commit 742d6008f5
4 changed files with 52 additions and 1 deletions

3
ecg/run.py Normal file
View File

@ -0,0 +1,3 @@
from app import *
ecg.main()

37
ecg/setup.py Normal file
View File

@ -0,0 +1,37 @@
from setuptools import setup
setup(
# Application name:
name="ecg",
# Version number (initial):
version="0.0.1",
# Application author details:
author="Quentin Guilloteau, Antoine Waehren",
author_email="Quentin.Guilloteau@unibas.ch, Antoine.Waehren@stud.unibas.ch",
# Packages
packages=["app"],
# Include additional files into the package
entry_points={
'console_scripts': ['ecg=app.ecg:main'],
},
# Details
url="https://forge.chapril.org/GuilloteauQ/study-docker-repro-longevity",
description="Test the software environment of Dockerfiles from research artifacts",
long_description="""
ECG is a program that automates software environment checking for scientific artifacts.
It is meant to be executed periodically to analyze variations in the software environment of the artifact through time.
""",
install_requires=[
"requests",
],
include_package_data=True,
)

View File

@ -15,6 +15,17 @@
kapkgs = kapack.packages.${system};
in
{
packages = {
ecg = pkgs.python3Packages.buildPythonPackage {
name = "ecg";
version = "0.0.1";
src = ./ecg;
propagatedBuildInputs = with (pkgs.python3Packages); [
requests
];
doCheck = false;
};
};
devShells = {
default = pkgs.mkShell {
packages = with pkgs; [
@ -28,7 +39,7 @@
requests
kapkgs.execo
]))
(rWrapper.override { packages = with rPackages; [ tidyverse reshape2 ]; })
#(rWrapper.override { packages = with rPackages; [ tidyverse reshape2 ]; })
];
};
latex = pkgs.mkShell {