2020-06-15 15:56:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-05 17:05:55 +00:00
|
|
|
, fetchpatch
|
2020-06-15 15:56:04 +00:00
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pytestCheckHook
|
|
|
|
, numpy
|
|
|
|
, astropy
|
2021-01-05 17:05:55 +00:00
|
|
|
, scipy
|
|
|
|
, h5py
|
|
|
|
, scikitimage
|
2020-06-15 15:56:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-astropy-header";
|
|
|
|
version = "0.1.2";
|
2021-01-05 17:05:55 +00:00
|
|
|
format = "pyproject";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1y87agr324p6x5gvhziymxjlw54pyn4gqnd49papbl941djpkp5g";
|
|
|
|
};
|
2021-01-05 17:05:55 +00:00
|
|
|
patches = [ (fetchpatch {
|
|
|
|
url = "https://github.com/astropy/pytest-astropy-header/pull/16.patch";
|
|
|
|
sha256 = "11ln63zq0kgsdx1jw3prlzpcdbxmc99p9cwr18s0x6apy0k6df31";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/astropy/pytest-astropy-header/pull/29.patch";
|
|
|
|
sha256 = "18l434c926r5z1iq3b6lpnp0lrssszars9y1y9hs6216r60jgjpl";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytestcov
|
|
|
|
numpy
|
2021-01-05 17:05:55 +00:00
|
|
|
scipy
|
|
|
|
h5py
|
|
|
|
scikitimage
|
2020-06-15 15:56:04 +00:00
|
|
|
astropy
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Plugin to add diagnostic information to the header of the test output";
|
|
|
|
homepage = "https://astropy.org";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|