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