diff --git a/pkgs/development/python-modules/doit/default.nix b/pkgs/development/python-modules/doit/default.nix index 2ade1982ec27..cfb36b7daf4a 100644 --- a/pkgs/development/python-modules/doit/default.nix +++ b/pkgs/development/python-modules/doit/default.nix @@ -10,9 +10,13 @@ , pyinotify , macfsevents , toml +, doit-py +, pyflakes +, configclass +, mergedict }: -buildPythonPackage rec { +let doit = buildPythonPackage rec { pname = "doit"; version = "0.36.0"; @@ -30,16 +34,25 @@ buildPythonPackage rec { ] ++ 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" + checkInputs = [ + 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.isDarwin; }); + }; + + pythonImportsCheck = [ "doit" ]; + meta = with lib; { homepage = "https://pydoit.org/"; description = "A task management & automation tool"; @@ -53,4 +66,5 @@ buildPythonPackage rec { ''; maintainers = with maintainers; [ pSub ]; }; -} + +}; in doit