2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pillow
|
|
|
|
, pytest
|
|
|
|
, pytest-datadir
|
|
|
|
, pytestCheckHook
|
|
|
|
, pyyaml
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-regressions";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.5.0";
|
2021-05-20 23:08:51 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-gYx4hMHP87q/ie67AsvCezB4VrGYVCfCTVLLgSoQb9k=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytest-datadir
|
|
|
|
pyyaml
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
matplotlib
|
2024-01-02 11:29:13 +00:00
|
|
|
pandas
|
|
|
|
pytestCheckHook
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_regressions"
|
|
|
|
"pytest_regressions.plugin"
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
dataframe = [ pandas numpy ];
|
|
|
|
image = [ numpy pillow ];
|
|
|
|
num = [ numpy pandas ];
|
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Pytest fixtures to write regression tests";
|
|
|
|
longDescription = ''
|
|
|
|
pytest-regressions makes it simple to test general data, images,
|
|
|
|
files, and numeric tables by saving expected data in a data
|
|
|
|
directory (courtesy of pytest-datadir) that can be used to verify
|
|
|
|
that future runs produce the same data.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/ESSS/pytest-regressions";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ AluisioASG ];
|
|
|
|
};
|
|
|
|
}
|