at master 1.0 kB view raw
1{ 2 buildPythonPackage, 3 # pkgs dependencies 4 check, 5 cppunit, 6 pkg-config, 7 subunit, 8 pythonOlder, 9 10 # python dependencies 11 extras, 12 fixtures, 13 hypothesis, 14 pytestCheckHook, 15 setuptools, 16 testscenarios, 17 testtools, 18}: 19 20buildPythonPackage { 21 inherit (subunit) name src meta; 22 format = "pyproject"; 23 24 disabled = pythonOlder "3.6"; 25 26 postPatch = '' 27 substituteInPlace setup.py \ 28 --replace "version=VERSION" 'version="${subunit.version}"' 29 ''; 30 31 nativeBuildInputs = [ 32 pkg-config 33 setuptools 34 ]; 35 36 buildInputs = [ 37 check 38 cppunit 39 ]; 40 41 propagatedBuildInputs = [ 42 extras 43 testtools 44 ]; 45 46 nativeCheckInputs = [ 47 testscenarios 48 hypothesis 49 fixtures 50 pytestCheckHook 51 ]; 52 53 enabledTestPaths = [ "python/subunit" ]; 54 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 ]; 61}