2019-02-24 19:14:28 +00:00
|
|
|
{ lib
|
2018-10-17 04:24:31 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-02-24 19:14:28 +00:00
|
|
|
, isPy27
|
2020-04-03 16:20:41 +00:00
|
|
|
, pythonOlder
|
2019-02-24 19:14:28 +00:00
|
|
|
, funcsigs
|
2020-04-03 16:20:41 +00:00
|
|
|
, setuptools_scm
|
|
|
|
# Check Inputs
|
|
|
|
, pytestCheckHook
|
|
|
|
, numpy
|
|
|
|
, matplotlib
|
|
|
|
, uncertainties
|
2018-10-17 04:24:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pint";
|
2020-04-03 16:20:41 +00:00
|
|
|
version = "0.11";
|
2018-10-17 04:24:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2019-02-24 19:14:28 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "Pint";
|
2020-04-03 16:20:41 +00:00
|
|
|
sha256 = "0kfgnmcs6z9ndhzvwg2xzhpwxgyyagdsdz5dns1jy40fa1q113rh";
|
2018-10-17 04:24:31 +00:00
|
|
|
};
|
|
|
|
|
2020-04-03 16:20:41 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools_scm
|
|
|
|
] ++ lib.optional isPy27 funcsigs;
|
|
|
|
|
|
|
|
# Test suite explicitly requires pytest
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
numpy
|
|
|
|
matplotlib
|
|
|
|
uncertainties
|
|
|
|
];
|
|
|
|
dontUseSetuptoolsCheck = true;
|
2019-02-24 19:14:28 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2018-10-17 04:24:31 +00:00
|
|
|
description = "Physical quantities module";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = "https://github.com/hgrecco/pint/";
|
2019-02-24 19:14:28 +00:00
|
|
|
maintainers = [ maintainers.costrouc ];
|
2018-10-17 04:24:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|