2021-03-20 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, nose
|
2023-02-02 18:25:31 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-03-20 04:20:00 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "parameterized";
|
2021-03-20 04:20:00 +00:00
|
|
|
version = "0.8.1";
|
2023-02-02 18:25:31 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-Qbv/N9YYZDD3f5ANd35btqJJKKHEb7HeaS+LUriDO1w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
2023-02-02 18:25:31 +00:00
|
|
|
nose
|
|
|
|
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
|
|
|
disabledTests = [
|
|
|
|
# Tests seem outdated
|
|
|
|
"test_method"
|
|
|
|
"test_with_docstring_0_value1"
|
|
|
|
"test_with_docstring_1_v_l_"
|
|
|
|
"testCamelCaseMethodC"
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|