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
|
|
|
|
, funcsigs
|
2018-10-17 04:24:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pint";
|
2019-02-14 07:37:23 +00:00
|
|
|
version = "0.9";
|
2018-10-17 04:24:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2019-02-24 19:14:28 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "Pint";
|
2019-02-14 07:37:23 +00:00
|
|
|
sha256 = "32d8a9a9d63f4f81194c0014b3b742679dce81a26d45127d9810a68a561fe4e2";
|
2018-10-17 04:24:31 +00:00
|
|
|
};
|
|
|
|
|
2019-02-24 19:14:28 +00:00
|
|
|
propagatedBuildInputs = lib.optional isPy27 funcsigs;
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|