02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, importlib-metadata
|
|
, isPy3k
|
|
, mock
|
|
, pytestCheckHook
|
|
, cloudpickle
|
|
, pyinotify
|
|
, macfsevents
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "doit";
|
|
version = "0.36.0";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-cdB8zJUUyyL+WdmJmVd2ZeqrV+FvZE0EM2rgtLriNLw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cloudpickle
|
|
importlib-metadata
|
|
toml
|
|
] ++ lib.optional stdenv.isLinux pyinotify
|
|
++ lib.optional stdenv.isDarwin macfsevents;
|
|
|
|
# hangs on darwin
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
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";
|
|
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.
|
|
'';
|
|
maintainers = with maintainers; [ pSub ];
|
|
};
|
|
}
|