2021-03-20 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
2023-02-02 18:25:31 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-07-15 17:15:38 +00:00
|
|
|
, setuptools
|
2021-03-20 04:20:00 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "parameterized";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.9.0";
|
|
|
|
format = "pyproject";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-f8kFJyzvpPNkwaNCnLvpwPmLeTmI77W/kKrIDwjbCbE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
postPatch = ''
|
|
|
|
# broken with pytest 7
|
|
|
|
# https://github.com/wolever/parameterized/issues/167
|
|
|
|
substituteInPlace parameterized/test.py \
|
|
|
|
--replace 'assert_equal(missing, [])' ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
2023-02-02 18:25:31 +00:00
|
|
|
pytestCheckHook
|
2021-03-20 04:20:00 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"parameterized/test.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"parameterized"
|
|
|
|
];
|
2021-03-20 04:20:00 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Parameterized testing with any Python test framework";
|
2021-03-20 04:20:00 +00:00
|
|
|
homepage = "https://github.com/wolever/parameterized";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/wolever/parameterized/blob/v${version}/CHANGELOG.txt";
|
2021-03-20 04:20:00 +00:00
|
|
|
license = licenses.bsd2;
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|