1{ buildPythonPackage 2# pkgs dependencies 3, check 4, cppunit 5, pkg-config 6, subunit 7 8# python dependencies 9, fixtures 10, hypothesis 11, pytest 12, testscenarios 13, testtools 14}: 15 16buildPythonPackage { 17 inherit (subunit) name src meta; 18 19 nativeBuildInputs = [ pkg-config ]; 20 buildInputs = [ check cppunit ]; 21 propagatedBuildInputs = [ testtools ]; 22 23 checkInputs = [ testscenarios hypothesis fixtures pytest ]; 24 # ignore tests which call shell code, or call methods which haven't been implemented 25 checkPhase = '' 26 pytest python/subunit \ 27 --ignore=python/subunit/tests/test_{output_filter,test_protocol{,2}}.py 28 ''; 29 30 postPatch = '' 31 sed -i 's/version=VERSION/version="${subunit.version}"/' setup.py 32 ''; 33}