2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools-scm,
|
|
|
|
pytestCheckHook,
|
2022-11-21 17:40:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "repeated-test";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "2.3.3";
|
2022-11-21 17:40:18 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "repeated_test";
|
|
|
|
inherit version;
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-3YPU8SL9rud5s0pnwwH5TJk1MXsDhdkDnZp/Oj6sgXs=";
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "repeated_test" ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Unittest-compatible framework for repeating a test function over many fixtures";
|
|
|
|
homepage = "https://github.com/epsy/repeated_test";
|
2023-08-04 22:07:22 +00:00
|
|
|
changelog = "https://github.com/epsy/repeated_test/releases/tag/v${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tjni ];
|
|
|
|
};
|
|
|
|
}
|