Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / subunit / default.nix
blobeb27ffdfb9829a0bb5a23bbf711aa9781a5d20a1
1 { buildPythonPackage
2 # pkgs dependencies
3 , check
4 , cppunit
5 , pkg-config
6 , subunit
7 , pythonOlder
9 # python dependencies
10 , fixtures
11 , hypothesis
12 , pytestCheckHook
13 , setuptools
14 , testscenarios
15 , testtools
18 buildPythonPackage {
19   inherit (subunit) name src meta;
20   format = "pyproject";
22   disabled = pythonOlder "3.6";
24   postPatch = ''
25     substituteInPlace setup.py \
26       --replace "version=VERSION" 'version="${subunit.version}"'
27   '';
29   nativeBuildInputs = [
30     pkg-config
31     setuptools
32   ];
34   buildInputs = [ check cppunit ];
35   propagatedBuildInputs = [ testtools ];
37   nativeCheckInputs = [
38     testscenarios
39     hypothesis
40     fixtures
41     pytestCheckHook
42   ];
44   pytestFlagsArray = [
45     "python/subunit"
46   ];
48   disabledTestPaths = [
49     # these tests require testtools and don't work with pytest
50     "python/subunit/tests/test_output_filter.py"
51     "python/subunit/tests/test_test_protocol.py"
52     "python/subunit/tests/test_test_protocol2.py"
53   ];