1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, python
6}:
7
8buildPythonPackage rec {
9 pname = "quantities";
10 version = "0.12.3";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "582f3c7aeba897846761e966615e01202a5e5d06add304492931b05085d19883";
15 };
16
17 propagatedBuildInputs = [ numpy ];
18
19 checkPhase = ''
20 ${python.interpreter} setup.py test -V 1
21 '';
22
23 meta = {
24 description = "Quantities is designed to handle arithmetic and";
25 homepage = http://python-quantities.readthedocs.io/;
26 license = lib.licenses.bsd2;
27 };
28}