2021-01-19 10:47:13 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
2022-07-16 10:59:05 +00:00
|
|
|
, importlib-metadata
|
2021-01-19 10:47:13 +00:00
|
|
|
, isPy3k
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, cloudpickle
|
|
|
|
, pyinotify
|
|
|
|
, macfsevents
|
2022-03-08 21:29:05 +00:00
|
|
|
, toml
|
2022-07-27 09:58:39 +00:00
|
|
|
, doit-py
|
|
|
|
, pyflakes
|
|
|
|
, configclass
|
|
|
|
, mergedict
|
2021-01-19 10:47:13 +00:00
|
|
|
}:
|
|
|
|
|
2022-07-27 09:58:39 +00:00
|
|
|
let doit = buildPythonPackage rec {
|
2021-01-19 10:47:13 +00:00
|
|
|
pname = "doit";
|
2022-07-16 10:59:05 +00:00
|
|
|
version = "0.36.0";
|
2017-04-01 21:48:58 +00:00
|
|
|
|
2021-01-19 10:47:13 +00:00
|
|
|
disabled = !isPy3k;
|
2017-04-01 21:48:58 +00:00
|
|
|
|
2021-01-19 10:47:13 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-cdB8zJUUyyL+WdmJmVd2ZeqrV+FvZE0EM2rgtLriNLw=";
|
2017-04-01 21:48:58 +00:00
|
|
|
};
|
|
|
|
|
2022-03-08 21:29:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cloudpickle
|
2022-07-16 10:59:05 +00:00
|
|
|
importlib-metadata
|
2022-03-08 21:29:05 +00:00
|
|
|
toml
|
|
|
|
] ++ lib.optional stdenv.isLinux pyinotify
|
2021-01-23 12:26:19 +00:00
|
|
|
++ lib.optional stdenv.isDarwin macfsevents;
|
2017-04-01 21:48:58 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-07-27 09:58:39 +00:00
|
|
|
configclass
|
|
|
|
doit-py
|
|
|
|
mergedict
|
|
|
|
mock
|
|
|
|
pyflakes
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-02-02 12:08:55 +00:00
|
|
|
|
2022-07-27 09:58:39 +00:00
|
|
|
# escape infinite recursion with doit-py
|
|
|
|
doCheck = false;
|
2021-01-19 10:47:13 +00:00
|
|
|
|
2022-07-27 09:58:39 +00:00
|
|
|
passthru.tests = {
|
|
|
|
# hangs on darwin
|
|
|
|
check = doit.overridePythonAttrs (_: { doCheck = !stdenv.isDarwin; });
|
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "doit" ];
|
2017-04-01 21:48:58 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://pydoit.org/";
|
2017-04-01 21:48:58 +00:00
|
|
|
description = "A task management & automation tool";
|
2018-07-16 20:17:38 +00:00
|
|
|
license = licenses.mit;
|
2017-04-01 21:48:58 +00:00
|
|
|
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 20:17:38 +00:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2017-04-01 21:48:58 +00:00
|
|
|
};
|
2022-07-27 09:58:39 +00:00
|
|
|
|
|
|
|
}; in doit
|