pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / oslo-config / tests.nix
blob7f6a3dfbf6f021dfe6150263994700fe9e0b0ead
2   buildPythonPackage,
3   oslo-config,
4   docutils,
5   oslo-log,
6   oslotest,
7   requests-mock,
8   sphinx,
9   stestr,
10   testscenarios,
13 buildPythonPackage {
14   pname = "oslo-config-tests";
15   inherit (oslo-config) version src;
16   format = "other";
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   '';
24   dontBuild = true;
25   dontInstall = true;
27   nativeCheckInputs = [
28     oslo-config
29     docutils
30     oslo-log
31     oslotest
32     requests-mock
33     sphinx
34     stestr
35     testscenarios
36   ];
38   checkPhase = ''
39     stestr run
40   '';