linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / pytest-dependency / default.nix
blobfc6b716397dd5a3b7dcb16deff3947c7254cbe52
1 { lib, buildPythonPackage, fetchPypi, fetchpatch, pytest }:
3 buildPythonPackage rec {
4   version = "0.5.1";
5   pname = "pytest-dependency";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "c2a892906192663f85030a6ab91304e508e546cddfe557d692d61ec57a1d946b";
10   };
12   patches = [
13     # Fix build with pytest ≥ 6.2.0, https://github.com/RKrahl/pytest-dependency/pull/51
14     (fetchpatch {
15       url = "https://github.com/RKrahl/pytest-dependency/commit/0930889a13e2b9baa7617f05dc9b55abede5209d.patch";
16       sha256 = "0ka892j0rrlnfvk900fcph0f6lsnr9dy06q5k2s2byzwijhdw6n5";
17     })
18   ];
20   buildInputs = [ pytest ];
22   checkInputs = [ pytest ];
24   checkPhase = ''
25     pytest
26   '';
28   meta = with lib; {
29     homepage = "https://github.com/RKrahl/pytest-dependency";
30     description = "Manage dependencies of tests";
31     license = licenses.asl20;
32     maintainers = [ maintainers.marsam ];
33   };