blob: b251c4287384b19f7ccfad507f13e9b0010554c4 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pytest-lazy-fixture";
version = "0.6.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "1b0hmnsxw4s2wf9pks8dg6dfy5cx3zcbzs8517lfccxsfizhqz8f";
};
patches = [
# fix build with pytest>=8
# https://github.com/TvoroG/pytest-lazy-fixture/issues/65#issuecomment-1915829980
./pytest-8-compatible.patch
];
build-system = [ setuptools ];
pythonImportsCheck = [ "pytest_lazyfixture" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Helps to use fixtures in pytest.mark.parametrize";
homepage = "https://github.com/tvorog/pytest-lazy-fixture";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tobim ];
};
}
|