Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / subunit / default.nix
blob299d7a2ecd29c0e93f0e255aa9ad4c29d9e73e24
1 { buildPythonPackage
2 # pkgs dependencies
3 , check
4 , cppunit
5 , pkg-config
6 , subunit
7 , pythonOlder
9 # python dependencies
10 , extras
11 , fixtures
12 , hypothesis
13 , pytestCheckHook
14 , setuptools
15 , testscenarios
16 , testtools
19 buildPythonPackage {
20   inherit (subunit) name src meta;
21   format = "pyproject";
23   disabled = pythonOlder "3.6";
25   postPatch = ''
26     substituteInPlace setup.py \
27       --replace "version=VERSION" 'version="${subunit.version}"'
28   '';
30   nativeBuildInputs = [
31     pkg-config
32     setuptools
33   ];
35   buildInputs = [ check cppunit ];
37   propagatedBuildInputs = [
38     extras
39     testtools
40   ];
42   nativeCheckInputs = [
43     testscenarios
44     hypothesis
45     fixtures
46     pytestCheckHook
47   ];
49   pytestFlagsArray = [
50     "python/subunit"
51   ];
53   disabledTestPaths = [
54     # these tests require testtools and don't work with pytest
55     "python/subunit/tests/test_output_filter.py"
56     "python/subunit/tests/test_test_protocol.py"
57     "python/subunit/tests/test_test_protocol2.py"
58   ];