2018-02-03 14:30:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, numpy
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "quantities";
|
2018-07-22 11:19:31 +01:00
|
|
|
version = "0.12.2";
|
2018-02-03 14:30:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-22 11:19:31 +01:00
|
|
|
sha256 = "92e8397938516483f4fd1855097ec11953ab10dd0bf3293954559226679f76f0";
|
2018-02-03 14:30:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} setup.py test -V 1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Quantities is designed to handle arithmetic and";
|
|
|
|
homepage = http://python-quantities.readthedocs.io/;
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|