python3Packages.quantities: fix build

This commit is contained in:
Fabian Affolter 2021-09-01 18:01:35 +02:00 committed by Martin Weinelt
parent af21888d74
commit 873649f639

View File

@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, numpy
, python
, pytestCheckHook
}:
buildPythonPackage rec {
@ -14,15 +14,27 @@ buildPythonPackage rec {
sha256 = "67546963cb2a519b1a4aa43d132ef754360268e5d551b43dd1716903d99812f0";
};
propagatedBuildInputs = [ numpy ];
propagatedBuildInputs = [
numpy
];
checkPhase = ''
${python.interpreter} setup.py test -V 1
'';
checkInputs = [
pytestCheckHook
];
meta = {
description = "Quantities is designed to handle arithmetic and";
disabledTests = [
# Tests don't work with current numpy
# https://github.com/python-quantities/python-quantities/pull/195
"test_arctan2"
"test_fix"
];
pythonImportsCheck = [ "quantities" ];
meta = with lib; {
description = "Quantities is designed to handle arithmetic and conversions of physical quantities";
homepage = "https://python-quantities.readthedocs.io/";
license = lib.licenses.bsd2;
license = licenses.bsd2;
maintainers = with maintainers; [ ];
};
}