1{ buildPythonPackage 2, stestr 3}: 4 5buildPythonPackage rec { 6 pname = "stestr-tests"; 7 inherit (stestr) version; 8 9 src = stestr.src; 10 11 postPatch = '' 12 # only a small portion of the listed packages are actually needed for running the tests 13 # so instead of removing them one by one remove everything 14 rm test-requirements.txt 15 ''; 16 17 dontBuild = true; 18 dontInstall = true; 19 20 checkInputs = [ 21 stestr 22 ]; 23 24 checkPhase = '' 25 export PATH=$out/bin:$PATH 26 export HOME=$TMPDIR 27 ''; 28}