diff options
Diffstat (limited to 'pkgs/development/python-modules/tomli/default.nix')
-rw-r--r-- | pkgs/development/python-modules/tomli/default.nix | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/tomli/default.nix b/pkgs/development/python-modules/tomli/default.nix index 551655eebf0d0..c9c9cb46b2c75 100644 --- a/pkgs/development/python-modules/tomli/default.nix +++ b/pkgs/development/python-modules/tomli/default.nix @@ -3,6 +3,7 @@ , callPackage , fetchFromGitHub , flit-core +, python # important downstream dependencies , flit @@ -13,40 +14,28 @@ buildPythonPackage rec { pname = "tomli"; - version = "1.2.2"; + version = "2.0.1"; format = "pyproject"; - outputs = [ - "out" - "testsout" - ]; - src = fetchFromGitHub { owner = "hukkin"; repo = pname; rev = version; - sha256 = "sha256-oDjpNzWxTaCC1+WyBKrkR6kp90ZomcZQfyW+xKddDoM="; + sha256 = "sha256-v0ZMrHIIaGeORwD4JiBeLthmnKZODK5odZVL0SY4etA="; }; - patches = [ - # required for mypy - ./fix-backwards-compatibility-load.patch - ]; - nativeBuildInputs = [ flit-core ]; - postInstall = '' - mkdir $testsout - cp -R benchmark/ pyproject.toml tests/ $testsout/ - ''; - pythonImportsCheck = [ "tomli" ]; - # check in passthru.tests.pytest to escape infinite recursion with setuptools-scm - doCheck = false; + checkPhase = '' + runHook preCheck + ${python.interpreter} -m unittest discover + runHook postCheck + ''; passthru.tests = { - pytest = callPackage ./tests.nix { }; + # test downstream dependencies inherit flit black mypy setuptools-scm; }; |