1{ buildPythonPackage
2, oslo-config
3, docutils
4, oslo-log
5, oslotest
6, requests-mock
7, sphinx
8, stestr
9, testscenarios
10}:
11
12buildPythonPackage rec {
13 pname = "oslo-config-tests";
14 inherit (oslo-config) version;
15
16 src = oslo-config.src;
17
18 postPatch = ''
19 # only a small portion of the listed packages are actually needed for running the tests
20 # so instead of removing them one by one remove everything
21 rm test-requirements.txt
22 '';
23
24 dontBuild = true;
25 dontInstall = true;
26
27 checkInputs = [
28 oslo-config
29 docutils
30 oslo-log
31 oslotest
32 requests-mock
33 sphinx
34 stestr
35 testscenarios
36 ];
37
38 checkPhase = ''
39 stestr run
40 '';
41}