about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-dependency/default.nix
blob: 6bb6463d00883f763c6aad3405dd534f9ffa3c58 (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
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, pytest
}:

buildPythonPackage rec {
  pname = "pytest-dependency";
  version = "0.5.1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-wqiSkGGSZj+FAwpquRME5QjlRs3f5VfWktYexXodlGs=";
  };

  patches = [
    # Fix build with pytest >= 6.2.0, https://github.com/RKrahl/pytest-dependency/pull/51
    (fetchpatch {
      url = "https://github.com/RKrahl/pytest-dependency/commit/0930889a13e2b9baa7617f05dc9b55abede5209d.patch";
      hash = "sha256-xRreoIz8+yW0mAUb4FvKVlPjALzMAZDmdpbmDKRISE0=";
    })
  ];

  buildInputs = [ pytest ];

  nativeCheckInputs = [ pytest ];

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    homepage = "https://github.com/RKrahl/pytest-dependency";
    description = "Manage dependencies of tests";
    license = licenses.asl20;
    maintainers = [ maintainers.marsam ];
  };
}