1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "pytest-lazy-fixture"; 11 version = "0.6.3"; 12 pyproject = true; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "1b0hmnsxw4s2wf9pks8dg6dfy5cx3zcbzs8517lfccxsfizhqz8f"; 17 }; 18 19 patches = [ 20 # fix build with pytest>=8 21 # https://github.com/TvoroG/pytest-lazy-fixture/issues/65#issuecomment-1915829980 22 ./pytest-8-compatible.patch 23 ]; 24 25 build-system = [ setuptools ]; 26 27 pythonImportsCheck = [ "pytest_lazyfixture" ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 meta = with lib; { 32 description = "Helps to use fixtures in pytest.mark.parametrize"; 33 homepage = "https://github.com/tvorog/pytest-lazy-fixture"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ tobim ]; 36 }; 37}