summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2020-08-29 12:55:49 +0100
committerJon <jonringer@users.noreply.github.com>2020-08-30 09:22:37 -0700
commit5f40ba47d55230719a91574eb67d3fac24f52bbf (patch)
tree22453bb193e3e18e10ce3fba2f00178987358fad /pkgs/development/python-modules
parentf56bda0c0c6ccdd405398a0ab3a5cbc75aaad405 (diff)
downloadnixpkgs-5f40ba47d55230719a91574eb67d3fac24f52bbf.tar
nixpkgs-5f40ba47d55230719a91574eb67d3fac24f52bbf.tar.gz
nixpkgs-5f40ba47d55230719a91574eb67d3fac24f52bbf.tar.bz2
nixpkgs-5f40ba47d55230719a91574eb67d3fac24f52bbf.tar.lz
nixpkgs-5f40ba47d55230719a91574eb67d3fac24f52bbf.tar.xz
nixpkgs-5f40ba47d55230719a91574eb67d3fac24f52bbf.tar.zst
nixpkgs-5f40ba47d55230719a91574eb67d3fac24f52bbf.zip
pythonPackages.pint: add missing dependencies
importlib-metadata and packaging appear to have been falsely satisfied
by the inclusion of pytestCheckHook in checkInputs. this can be
demonstrated by attempting to build this package with doCheck = false.

also removed the isPy27 clause as package no longer seems to support <3.6
anyway now.
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/pint/default.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/pint/default.nix b/pkgs/development/python-modules/pint/default.nix
index 939eeafd9b9..bb2a20cf62f 100644
--- a/pkgs/development/python-modules/pint/default.nix
+++ b/pkgs/development/python-modules/pint/default.nix
@@ -1,10 +1,10 @@
 { lib
 , buildPythonPackage
 , fetchPypi
-, isPy27
 , pythonOlder
-, funcsigs
 , setuptools_scm
+, importlib-metadata
+, packaging
 # Check Inputs
 , pytestCheckHook
 , numpy
@@ -24,9 +24,10 @@ buildPythonPackage rec {
 
   disabled = pythonOlder "3.6";
 
-  propagatedBuildInputs = [
-    setuptools_scm
-  ] ++ lib.optional isPy27 funcsigs;
+  nativeBuildInputs = [ setuptools_scm ];
+  
+  propagatedBuildInputs = [ packaging ]
+    ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
 
   # Test suite explicitly requires pytest
   checkInputs = [