about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pytest-lazy-fixture/default.nix
blob: b4006b70078355515a3ebeaa91816bdaaf8f8456 (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
{ 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 = with lib; {
    description = "Helps to use fixtures in pytest.mark.parametrize";
    homepage = "https://github.com/tvorog/pytest-lazy-fixture";
    license = licenses.mit;
    maintainers = with maintainers; [ tobim ];
  };
}