2019-07-15 16:45:36 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, numpy
|
|
|
|
, six
|
|
|
|
, pytest
|
|
|
|
, astropy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-arraydiff";
|
|
|
|
version = "0.3";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "de2d62f53ecc107ed754d70d562adfa7573677a263216a7f19aa332f20dc6c15";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
six
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
2019-07-17 11:21:29 +01:00
|
|
|
# The tests requires astropy, which itself requires
|
|
|
|
# pytest-arraydiff. This causes an infinite recursion if the tests
|
|
|
|
# are enabled.
|
|
|
|
doCheck = false;
|
2019-07-15 16:45:36 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pytest plugin to help with comparing array output from tests";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/astrofrog/pytest-arraydiff";
|
2019-07-15 16:45:36 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|