12 buildPythonPackage rec {
13 pname = "unittest-xml-reporting";
17 disabled = pythonOlder "3.7";
19 src = fetchFromGitHub {
21 repo = "unittest-xml-reporting";
22 rev = "refs/tags/${version}";
23 hash = "sha256-lOJ/+8CVJUXdIaZLLF5PpPkG0DzlNgo46kRZ1Xy7Ju0=";
26 build-system = [ setuptools ];
28 dependencies = [ lxml ];
30 nativeCheckInputs = [ pytestCheckHook ];
33 lib.optionals (pythonAtLeast "3.11") [
34 # AttributeError: 'tuple' object has no attribute 'shortDescription'
35 "test_basic_unittest_constructs"
36 "test_unexpected_success"
38 ++ lib.optionals (pythonAtLeast "3.12") [ "test_xmlrunner_hold_traceback" ];
40 pythonImportsCheck = [ "xmlrunner" ];
43 description = "Unittest-based test runner with Ant/JUnit like XML reporting";
44 homepage = "https://github.com/xmlrunner/unittest-xml-reporting";
45 changelog = "https://github.com/xmlrunner/unittest-xml-reporting/releases/tag/${version}";
46 license = licenses.bsd2;
47 maintainers = with maintainers; [ rprospero ];