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 preConfigure = ''
20 pythonOutputDistPhase() { touch $dist; }
21 '';
22
23 checkInputs = [
24 stestr
25 ];
26
27 checkPhase = ''
28 export PATH=$out/bin:$PATH
29 export HOME=$TMPDIR
30 '';
31}