Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 967 B view raw
1{ buildPythonPackage 2# pkgs dependencies 3, check 4, cppunit 5, pkg-config 6, subunit 7, pythonOlder 8 9# python dependencies 10, fixtures 11, hypothesis 12, pytestCheckHook 13, setuptools 14, testscenarios 15, testtools 16}: 17 18buildPythonPackage { 19 inherit (subunit) name src meta; 20 format = "pyproject"; 21 22 disabled = pythonOlder "3.6"; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace "version=VERSION" 'version="${subunit.version}"' 27 ''; 28 29 nativeBuildInputs = [ 30 pkg-config 31 setuptools 32 ]; 33 34 buildInputs = [ check cppunit ]; 35 propagatedBuildInputs = [ testtools ]; 36 37 nativeCheckInputs = [ 38 testscenarios 39 hypothesis 40 fixtures 41 pytestCheckHook 42 ]; 43 44 pytestFlagsArray = [ 45 "python/subunit" 46 ]; 47 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 ]; 54}