1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, pytest 6}: 7 8buildPythonPackage rec { 9 pname = "pytest-dependency"; 10 version = "0.5.1"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-wqiSkGGSZj+FAwpquRME5QjlRs3f5VfWktYexXodlGs="; 15 }; 16 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 ]; 24 25 buildInputs = [ pytest ]; 26 27 nativeCheckInputs = [ pytest ]; 28 29 checkPhase = '' 30 pytest 31 ''; 32 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 }; 39}