depot/third_party/nixpkgs/pkgs/development/python-modules/doit/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

51 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchPypi
, buildPythonPackage
, isPy3k
, mock
, pytestCheckHook
, cloudpickle
, pyinotify
, macfsevents
}:
buildPythonPackage rec {
pname = "doit";
version = "0.34.2";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-OIER+Kals7RGIM7rKH0FhZJ8hdDW0/h5DTT7tFwM9sM=";
};
propagatedBuildInputs = [ cloudpickle ]
++ 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 ];
};
}