superfile: 1.1.6 -> 1.1.7 (#371308)
[NixPkgs.git] / pkgs / development / python-modules / subunit / default.nix
blobb101ec505aebe64f9cf5189d4b1c01b76ca3d5af
2   buildPythonPackage,
3   # pkgs dependencies
4   check,
5   cppunit,
6   pkg-config,
7   subunit,
8   pythonOlder,
10   # python dependencies
11   extras,
12   fixtures,
13   hypothesis,
14   pytestCheckHook,
15   setuptools,
16   testscenarios,
17   testtools,
20 buildPythonPackage {
21   inherit (subunit) name src meta;
22   format = "pyproject";
24   disabled = pythonOlder "3.6";
26   postPatch = ''
27     substituteInPlace setup.py \
28       --replace "version=VERSION" 'version="${subunit.version}"'
29   '';
31   nativeBuildInputs = [
32     pkg-config
33     setuptools
34   ];
36   buildInputs = [
37     check
38     cppunit
39   ];
41   propagatedBuildInputs = [
42     extras
43     testtools
44   ];
46   nativeCheckInputs = [
47     testscenarios
48     hypothesis
49     fixtures
50     pytestCheckHook
51   ];
53   pytestFlagsArray = [ "python/subunit" ];
55   disabledTestPaths = [
56     # these tests require testtools and don't work with pytest
57     "python/subunit/tests/test_output_filter.py"
58     "python/subunit/tests/test_test_protocol.py"
59     "python/subunit/tests/test_test_protocol2.py"
60   ];