blob: b6ee36c3dce2f4dfa1c81281d37000834c0255c5 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
{ lib
, buildPythonPackage
, fetchPypi
, flit-core
, pytestCheckHook
, numpy
, decopatch
, more-itertools
, nestedtext
, pyyaml
, tidyexc
, toml
}:
buildPythonPackage rec {
pname = "parametrize-from-file";
version = "0.19.0";
format = "pyproject";
src = fetchPypi {
inherit version;
pname = "parametrize_from_file";
hash = "sha256-FPTO2hYZT7bsQyPNcjBEk8SZKp51o/eMV5/U58W5SPI=";
};
# patch out coveralls since it doesn't provide us value
preBuild = ''
sed -i '/coveralls/d' ./pyproject.toml
substituteInPlace pyproject.toml \
--replace "more_itertools~=8.10" "more_itertools"
'';
nativeBuildInputs = [
flit-core
];
nativeCheckInputs = [
numpy
pytestCheckHook
];
propagatedBuildInputs = [
decopatch
more-itertools
nestedtext
pyyaml
tidyexc
toml
];
pythonImportsCheck = [
"parametrize_from_file"
];
disabledTests = [
# https://github.com/kalekundert/parametrize_from_file/issues/19
"test_load_suite_params_err"
];
meta = with lib; {
description = "Read unit test parameters from config files";
homepage = "https://github.com/kalekundert/parametrize_from_file";
changelog = "https://github.com/kalekundert/parametrize_from_file/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
}
|