anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / unittest-xml-reporting / default.nix
blob030ab4337ec709bfa2dde9ef18299479d029990c
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   lxml,
6   pytestCheckHook,
7   pythonAtLeast,
8   pythonOlder,
9   setuptools,
12 buildPythonPackage rec {
13   pname = "unittest-xml-reporting";
14   version = "3.2.0";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "xmlrunner";
21     repo = "unittest-xml-reporting";
22     rev = "refs/tags/${version}";
23     hash = "sha256-lOJ/+8CVJUXdIaZLLF5PpPkG0DzlNgo46kRZ1Xy7Ju0=";
24   };
26   build-system = [ setuptools ];
28   dependencies = [ lxml ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   disabledTests =
33     lib.optionals (pythonAtLeast "3.11") [
34       # AttributeError: 'tuple' object has no attribute 'shortDescription'
35       "test_basic_unittest_constructs"
36       "test_unexpected_success"
37     ]
38     ++ lib.optionals (pythonAtLeast "3.12") [ "test_xmlrunner_hold_traceback" ];
40   pythonImportsCheck = [ "xmlrunner" ];
42   meta = with lib; {
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 ];
48   };