2019-07-15 16:45:36 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, numpy
|
|
|
|
, pytest
|
2022-01-15 20:58:51 +00:00
|
|
|
, pythonOlder
|
|
|
|
, setuptools-scm
|
2019-07-15 16:45:36 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-arraydiff";
|
2022-01-14 00:58:48 +00:00
|
|
|
version = "0.5.0";
|
2022-01-15 20:58:51 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2019-07-15 16:45:36 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-14 00:58:48 +00:00
|
|
|
sha256 = "714149beffd0dfa085477c65791c1139b619602b049536353ce1a91397fb3bd2";
|
2019-07-15 16:45:36 +01:00
|
|
|
};
|
|
|
|
|
2022-01-15 20:58:51 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2021-03-12 22:20:19 +00:00
|
|
|
|
2019-07-15 16:45:36 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
2022-01-15 20:58:51 +00:00
|
|
|
# The tests requires astropy, which itself requires pytest-arraydiff
|
2019-07-17 11:21:29 +01:00
|
|
|
doCheck = false;
|
2019-07-15 16:45:36 +01:00
|
|
|
|
2022-01-15 20:58:51 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_arraydiff"
|
|
|
|
];
|
|
|
|
|
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;
|
2022-01-15 20:58:51 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2019-07-15 16:45:36 +01:00
|
|
|
};
|
|
|
|
}
|