Merge pull request #130897 from veprbl/pr/toil
This commit is contained in:
commit
8ca1a0ba91
6 changed files with 136 additions and 0 deletions
39
pkgs/applications/science/misc/toil/default.nix
Normal file
39
pkgs/applications/science/misc/toil/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ lib, fetchFromGitHub, python3Packages }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "toil";
|
||||
version = "5.4.0";
|
||||
|
||||
src = python3Packages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "73c0648828bd3610c07b7648dd06d6ec27efefdb09473bf01d05d91eb899c9fd";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "docker = " "docker = 'docker' #" \
|
||||
--replace "addict = " "addict = 'addict' #"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
addict
|
||||
docker
|
||||
pytz
|
||||
pyyaml
|
||||
enlighten
|
||||
psutil
|
||||
python-dateutil
|
||||
dill
|
||||
];
|
||||
checkInputs = with python3Packages; [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "src/toil/test" ];
|
||||
pythonImportsCheck = [ "toil" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://toil.ucsc-cgl.org/";
|
||||
license = with licenses; [ asl20 ];
|
||||
description = "Workflow engine written in pure Python";
|
||||
maintainers = with maintainers; [ veprbl ];
|
||||
};
|
||||
}
|
26
pkgs/development/python-modules/addict/default.nix
Normal file
26
pkgs/development/python-modules/addict/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "addict";
|
||||
version = "2.4.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b3b2210e0e067a281f5646c8c5db92e99b7231ea8b0eb5f74dbdf9e259d4e494";
|
||||
};
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "addict" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module that exposes a dictionary subclass that allows items to be set like attributes";
|
||||
homepage = "https://github.com/mewwts/addict";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ veprbl ];
|
||||
};
|
||||
}
|
37
pkgs/development/python-modules/enlighten/default.nix
Normal file
37
pkgs/development/python-modules/enlighten/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, blessed
|
||||
, prefixed
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "enlighten";
|
||||
version = "1.10.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3391916586364aedced5d6926482b48745e4948f822de096d32258ba238ea984";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
blessed
|
||||
prefixed
|
||||
];
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "enlighten" ];
|
||||
disabledTests =
|
||||
# https://github.com/Rockhopper-Technologies/enlighten/issues/44
|
||||
lib.optional stdenv.isDarwin "test_autorefresh"
|
||||
;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Enlighten Progress Bar for Python Console Apps";
|
||||
homepage = "https://github.com/Rockhopper-Technologies/enlighten";
|
||||
license = with licenses; [ mpl20 ];
|
||||
maintainers = with maintainers; [ veprbl ];
|
||||
};
|
||||
}
|
26
pkgs/development/python-modules/prefixed/default.nix
Normal file
26
pkgs/development/python-modules/prefixed/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "prefixed";
|
||||
version = "0.3.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ca48277ba5fa8346dd4b760847da930c7b84416387c39e93affef086add2c029";
|
||||
};
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "prefixed" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Prefixed alternative numeric library";
|
||||
homepage = "https://github.com/Rockhopper-Technologies/prefixed";
|
||||
license = with licenses; [ mpl20 ];
|
||||
maintainers = with maintainers; [ veprbl ];
|
||||
};
|
||||
}
|
|
@ -14351,6 +14351,8 @@ in
|
|||
|
||||
todoist-electron = callPackage ../applications/misc/todoist-electron { };
|
||||
|
||||
toil = callPackage ../applications/science/misc/toil { };
|
||||
|
||||
travis = callPackage ../development/tools/misc/travis { };
|
||||
|
||||
tree-sitter = callPackage ../development/tools/parsing/tree-sitter {
|
||||
|
|
|
@ -199,6 +199,8 @@ in {
|
|||
inherit (pkgs.darwin.apple_sdk.frameworks) CoreFoundation Security;
|
||||
};
|
||||
|
||||
addict = callPackage ../development/python-modules/addict { };
|
||||
|
||||
addic7ed-cli = callPackage ../development/python-modules/addic7ed-cli { };
|
||||
|
||||
adext = callPackage ../development/python-modules/adext { };
|
||||
|
@ -2297,6 +2299,8 @@ in {
|
|||
|
||||
enamlx = callPackage ../development/python-modules/enamlx { };
|
||||
|
||||
enlighten = callPackage ../development/python-modules/enlighten { };
|
||||
|
||||
enocean = callPackage ../development/python-modules/enocean { };
|
||||
|
||||
enrich = callPackage ../development/python-modules/enrich { };
|
||||
|
@ -5544,6 +5548,8 @@ in {
|
|||
|
||||
precis-i18n = callPackage ../development/python-modules/precis-i18n { };
|
||||
|
||||
prefixed = callPackage ../development/python-modules/prefixed { };
|
||||
|
||||
pre-commit = callPackage ../development/python-modules/pre-commit { };
|
||||
|
||||
pre-commit-hooks = callPackage ../development/python-modules/pre-commit-hooks { };
|
||||
|
|
Loading…
Reference in a new issue