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