Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pytest-dependency / default.nix
blob8cecd7f7f0bd21f9e852189df800fd85b1d4b31d
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , fetchpatch
5 , pytest
6 }:
8 buildPythonPackage rec {
9   pname = "pytest-dependency";
10   version = "0.5.1";
12   src = fetchPypi {
13     inherit pname version;
14     hash = "sha256-wqiSkGGSZj+FAwpquRME5QjlRs3f5VfWktYexXodlGs=";
15   };
17   patches = [
18     # Fix build with pytest >= 6.2.0, https://github.com/RKrahl/pytest-dependency/pull/51
19     (fetchpatch {
20       url = "https://github.com/RKrahl/pytest-dependency/commit/0930889a13e2b9baa7617f05dc9b55abede5209d.patch";
21       hash = "sha256-xRreoIz8+yW0mAUb4FvKVlPjALzMAZDmdpbmDKRISE0=";
22     })
23   ];
25   buildInputs = [ pytest ];
27   nativeCheckInputs = [ pytest ];
29   checkPhase = ''
30     pytest
31   '';
33   meta = with lib; {
34     homepage = "https://github.com/RKrahl/pytest-dependency";
35     description = "Manage dependencies of tests";
36     license = licenses.asl20;
37     maintainers = [ maintainers.marsam ];
38   };