nixpkgs/pkgs/development/python-modules/doit/default.nix

52 lines
1.2 KiB
Nix
Raw Normal View History

2021-01-19 10:47:13 +00:00
{ lib
, stdenv
, fetchPypi
, buildPythonPackage
, isPy3k
, mock
, pytestCheckHook
, cloudpickle
, pyinotify
, macfsevents
}:
buildPythonPackage rec {
pname = "doit";
2021-01-19 10:50:42 +00:00
version = "0.33.1";
2021-01-19 10:47:13 +00:00
disabled = !isPy3k;
2021-01-19 10:47:13 +00:00
src = fetchPypi {
inherit pname version;
2021-01-19 10:50:42 +00:00
sha256 = "37c3b35c2151647b968b2af24481112b2f813c30f695366db0639d529190a143";
};
2021-01-19 10:47:13 +00:00
propagatedBuildInputs = [ cloudpickle ]
++ lib.optional stdenv.isLinux pyinotify
++ lib.optional stdenv.isDarwin macfsevents;
# hangs on darwin
doCheck = !stdenv.isDarwin;
2021-01-19 10:47:13 +00:00
checkInputs = [ mock pytestCheckHook ];
disabledTests = [
# depends on doit-py, which has a circular dependency on doit
"test___main__.py"
];
meta = with lib; {
homepage = "https://pydoit.org/";
description = "A task management & automation tool";
2018-07-16 21:17:38 +01:00
license = licenses.mit;
longDescription = ''
doit is a modern open-source build-tool written in python
designed to be simple to use and flexible to deal with complex
work-flows. It is specially suitable for building and managing
custom work-flows where there is no out-of-the-box solution
available.
'';
2018-07-16 21:17:38 +01:00
maintainers = with maintainers; [ pSub ];
};
}