Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, numpy 5, python 6}: 7 8buildPythonPackage rec { 9 pname = "quantities"; 10 version = "0.12.4"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "12qx6cgib3wxmm2cvann4zw4jnhhn24ms61ifq9f3jbh31nn6gd3"; 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 = "https://python-quantities.readthedocs.io/"; 26 license = lib.licenses.bsd2; 27 }; 28}