depot/third_party/nixpkgs/pkgs/development/python-modules/unittest-xml-reporting/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

37 lines
788 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, lxml
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "unittest-xml-reporting";
version = "3.2.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "xmlrunner";
repo = "unittest-xml-reporting";
rev = version;
sha256 = "sha256-lOJ/+8CVJUXdIaZLLF5PpPkG0DzlNgo46kRZ1Xy7Ju0=";
};
propagatedBuildInputs = [
lxml
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "xmlrunner" ];
meta = with lib; {
homepage = "https://github.com/xmlrunner/unittest-xml-reporting";
description = "unittest-based test runner with Ant/JUnit like XML reporting";
license = licenses.bsd2;
maintainers = with maintainers; [ rprospero SuperSandro2000 ];
};
}