blob: fb08e07ec04b2866454268f0c47d32fb38ce79da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{ lib
, buildPythonPackage
, fetchPypi
, mock
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "parameterized";
version = "0.9.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-f8kFJyzvpPNkwaNCnLvpwPmLeTmI77W/kKrIDwjbCbE=";
};
postPatch = ''
# broken with pytest 7
# https://github.com/wolever/parameterized/issues/167
substituteInPlace parameterized/test.py \
--replace 'assert_equal(missing, [])' ""
'';
nativeBuildInputs = [
setuptools
];
checkInputs = [
mock
pytestCheckHook
];
pytestFlagsArray = [
"parameterized/test.py"
];
pythonImportsCheck = [
"parameterized"
];
meta = with lib; {
description = "Parameterized testing with any Python test framework";
homepage = "https://github.com/wolever/parameterized";
changelog = "https://github.com/wolever/parameterized/blob/v${version}/CHANGELOG.txt";
license = licenses.bsd2;
maintainers = with maintainers; [ ];
};
}
|