2018-02-03 15:30:51 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, numpy
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "quantities";
|
2020-02-02 01:10:26 +01:00
|
|
|
version = "0.12.4";
|
2018-02-03 15:30:51 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-02 01:10:26 +01:00
|
|
|
sha256 = "12qx6cgib3wxmm2cvann4zw4jnhhn24ms61ifq9f3jbh31nn6gd3";
|
2018-02-03 15:30:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} setup.py test -V 1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Quantities is designed to handle arithmetic and";
|
2020-01-10 21:17:37 +01:00
|
|
|
homepage = https://python-quantities.readthedocs.io/;
|
2018-02-03 15:30:51 +01:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
};
|
2020-01-10 21:17:37 +01:00
|
|
|
}
|