nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 34 lines 899 B view raw
1{ lib, buildPythonPackage, fetchPypi, fetchpatch, pytest }: 2 3buildPythonPackage rec { 4 version = "0.5.1"; 5 pname = "pytest-dependency"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "c2a892906192663f85030a6ab91304e508e546cddfe557d692d61ec57a1d946b"; 10 }; 11 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 ]; 19 20 buildInputs = [ pytest ]; 21 22 checkInputs = [ pytest ]; 23 24 checkPhase = '' 25 pytest 26 ''; 27 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 }; 34}