2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
# pkgs dependencies
|
|
|
|
, check
|
|
|
|
, cppunit
|
|
|
|
, pkg-config
|
|
|
|
, subunit
|
2022-01-13 20:06:32 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# python dependencies
|
2024-01-13 08:15:51 +00:00
|
|
|
, extras
|
2020-04-24 23:36:52 +00:00
|
|
|
, fixtures
|
|
|
|
, hypothesis
|
2022-12-17 10:02:37 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
, testscenarios
|
|
|
|
, testtools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit (subunit) name src meta;
|
2022-12-17 10:02:37 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "version=VERSION" 'version="${subunit.version}"'
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
setuptools
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ check cppunit ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
extras
|
|
|
|
testtools
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-17 10:02:37 +00:00
|
|
|
testscenarios
|
|
|
|
hypothesis
|
|
|
|
fixtures
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"python/subunit"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# these tests require testtools and don't work with pytest
|
|
|
|
"python/subunit/tests/test_output_filter.py"
|
|
|
|
"python/subunit/tests/test_test_protocol.py"
|
|
|
|
"python/subunit/tests/test_test_protocol2.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|