mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
python3Packages.quantities: fix build
This commit is contained in:
parent
af21888d74
commit
873649f639
@ -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; [ ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user