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