Files
2026-05-25 15:12:59 -04:00

84 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchPypi,
buildPythonPackage,
importlib-metadata,
isPy3k,
mock,
pytestCheckHook,
cloudpickle,
pyinotify,
macfsevents,
toml,
doit-py,
pyflakes,
configclass,
mergedict,
setuptools,
}:
let
doit = buildPythonPackage rec {
pname = "doit";
version = "0.37.0";
pyproject = true;
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
hash = "sha256-08cuDkao+h3avqj4MHYkAt7gkMrzPDDCKVrHAQ248Jw=";
};
propagatedBuildInputs = [
cloudpickle
importlib-metadata
toml
]
++ lib.optional stdenv.hostPlatform.isLinux pyinotify
++ lib.optional stdenv.hostPlatform.isDarwin macfsevents;
build-system = [
setuptools
];
nativeCheckInputs = [
configclass
doit-py
mergedict
mock
pyflakes
pytestCheckHook
];
# escape infinite recursion with doit-py
doCheck = false;
passthru.tests = {
# hangs on darwin
check = doit.overridePythonAttrs (_: {
doCheck = !stdenv.hostPlatform.isDarwin;
});
};
pythonImportsCheck = [ "doit" ];
meta = {
homepage = "https://pydoit.org/";
description = "Task management & automation tool";
mainProgram = "doit";
license = lib.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 lib.maintainers; [ pSub ];
};
};
in
doit