1{ lib 2, buildPythonPackage 3, fetchPypi 4, numpy 5, python 6}: 7 8buildPythonPackage rec { 9 pname = "quantities"; 10 version = "0.12.1"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "0a03e8511db603c57ca80dee851c43f08d0457f4d592bcac2e154570756cb934"; 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}