pythonPackages.pint: 0.9 -> 0.11
commit4b822bbd233f252aeb4513ae0d0e9280a5e32114
authorDrew Risinger <drewrisinger@users.noreply.github.com>
dateFri 3 Apr 2020, 12:20 (7 years ago)
parent8f9daf0
pkgs/development/python-modules/pint/default.nix+23−3
@@ -2,20 +2,40 @@
22, buildPythonPackage
33, fetchPypi
44, isPy27
5+, pythonOlder
56, funcsigs
7+, setuptools_scm
8+# Check Inputs
9+, pytestCheckHook
10+, numpy
11+, matplotlib
12+, uncertainties
613}:
714
815buildPythonPackage rec {
916 pname = "pint";
10− version = "0.9";
17+ version = "0.11";
1118
1219 src = fetchPypi {
1320 inherit version;
1421 pname = "Pint";
15− sha256 = "32d8a9a9d63f4f81194c0014b3b742679dce81a26d45127d9810a68a561fe4e2";
22+ sha256 = "0kfgnmcs6z9ndhzvwg2xzhpwxgyyagdsdz5dns1jy40fa1q113rh";
1623 };
1724
18− propagatedBuildInputs = lib.optional isPy27 funcsigs;
25+ disabled = pythonOlder "3.6";
26+
27+ propagatedBuildInputs = [
28+ setuptools_scm
29+ ] ++ lib.optional isPy27 funcsigs;
30+
31+ # Test suite explicitly requires pytest
32+ checkInputs = [
33+ pytestCheckHook
34+ numpy
35+ matplotlib
36+ uncertainties
37+ ];
38+ dontUseSetuptoolsCheck = true;
1939
2040 meta = with lib; {
2141 description = "Physical quantities module";