doit: move to pythonPackages
This commit is contained in:
parent
76054e38cd
commit
98e624eb7d
@ -1,28 +1,38 @@
|
|||||||
{ lib, stdenv, fetchurl, python3Packages }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchPypi
|
||||||
|
, buildPythonPackage
|
||||||
|
, isPy3k
|
||||||
|
, mock
|
||||||
|
, pytestCheckHook
|
||||||
|
, cloudpickle
|
||||||
|
, pyinotify
|
||||||
|
, macfsevents
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
buildPythonPackage rec {
|
||||||
|
pname = "doit";
|
||||||
name = "doit";
|
|
||||||
version = "0.32.0";
|
version = "0.32.0";
|
||||||
|
|
||||||
in python3Packages.buildPythonApplication {
|
disabled = !isPy3k;
|
||||||
name = "${name}-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchPypi {
|
||||||
url = "mirror://pypi/d/${name}/${name}-${version}.tar.gz";
|
inherit pname version;
|
||||||
sha256 = "033m6y9763l81kgqd07rm62bngv3dsm3k9p28nwsn2qawl8h8g9j";
|
sha256 = "033m6y9763l81kgqd07rm62bngv3dsm3k9p28nwsn2qawl8h8g9j";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with python3Packages; [ mock pytest ];
|
propagatedBuildInputs = [ cloudpickle ]
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [ cloudpickle ]
|
|
||||||
++ lib.optional stdenv.isLinux pyinotify
|
++ lib.optional stdenv.isLinux pyinotify
|
||||||
++ lib.optional stdenv.isDarwin macfsevents;
|
++ lib.optional stdenv.isDarwin macfsevents;
|
||||||
|
|
||||||
# Tests fail due to mysterious gdbm.open() resource temporarily
|
checkInputs = [ mock pytestCheckHook ];
|
||||||
# unavailable errors.
|
|
||||||
doCheck = false;
|
disabledTests = [
|
||||||
checkPhase = "py.test";
|
# depends on doit-py, which has a circular dependency on doit
|
||||||
|
"test___main__.py"
|
||||||
|
# https://github.com/pydoit/doit/issues/341
|
||||||
|
"test_not_picklable_raises_InvalidTask"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://pydoit.org/";
|
homepage = "https://pydoit.org/";
|
||||||
@ -36,6 +46,5 @@ in python3Packages.buildPythonApplication {
|
|||||||
available.
|
available.
|
||||||
'';
|
'';
|
||||||
maintainers = with maintainers; [ pSub ];
|
maintainers = with maintainers; [ pSub ];
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -11969,7 +11969,7 @@ in
|
|||||||
|
|
||||||
doctl = callPackage ../development/tools/doctl { };
|
doctl = callPackage ../development/tools/doctl { };
|
||||||
|
|
||||||
doit = callPackage ../development/tools/build-managers/doit { };
|
doit = with python3Packages; toPythonApplication doit;
|
||||||
|
|
||||||
dolt = callPackage ../servers/sql/dolt { };
|
dolt = callPackage ../servers/sql/dolt { };
|
||||||
|
|
||||||
|
@ -1933,6 +1933,8 @@ in {
|
|||||||
|
|
||||||
dogtail = callPackage ../development/python-modules/dogtail { };
|
dogtail = callPackage ../development/python-modules/dogtail { };
|
||||||
|
|
||||||
|
doit = callPackage ../development/python-modules/doit { };
|
||||||
|
|
||||||
dominate = callPackage ../development/python-modules/dominate { };
|
dominate = callPackage ../development/python-modules/dominate { };
|
||||||
|
|
||||||
dopy = callPackage ../development/python-modules/dopy { };
|
dopy = callPackage ../development/python-modules/dopy { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user