nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 50 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 lxml, 6 pytestCheckHook, 7 pythonAtLeast, 8 setuptools, 9 setuptools-scm, 10}: 11 12buildPythonPackage rec { 13 pname = "unittest-xml-reporting"; 14 version = "4.0.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "xmlrunner"; 19 repo = "unittest-xml-reporting"; 20 tag = version; 21 hash = "sha256-9gV/DX/G12bthonBJlMDKaS6Iwt9nF5DrNG33KK7KbU="; 22 }; 23 24 build-system = [ 25 setuptools 26 setuptools-scm 27 ]; 28 29 dependencies = [ lxml ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 disabledTests = 34 lib.optionals (pythonAtLeast "3.11") [ 35 # AttributeError: 'tuple' object has no attribute 'shortDescription' 36 "test_basic_unittest_constructs" 37 "test_unexpected_success" 38 ] 39 ++ lib.optionals (pythonAtLeast "3.12") [ "test_xmlrunner_hold_traceback" ]; 40 41 pythonImportsCheck = [ "xmlrunner" ]; 42 43 meta = { 44 description = "Unittest-based test runner with Ant/JUnit like XML reporting"; 45 homepage = "https://github.com/xmlrunner/unittest-xml-reporting"; 46 changelog = "https://github.com/xmlrunner/unittest-xml-reporting/releases/tag/${src.tag}"; 47 license = lib.licenses.bsd2; 48 maintainers = with lib.maintainers; [ rprospero ]; 49 }; 50}