Merge pull request #173587 from SuperSandro2000/unittest-xml-reporting

python310Packages.unittest-xml-reporting: enable tests, adopt
This commit is contained in:
Sandro 2022-05-23 21:11:14 +02:00 committed by GitHub
commit f53356cb1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,26 +1,37 @@
{lib, fetchPypi, buildPythonPackage, isPy27, six, lxml }: { lib
, fetchFromGitHub
, buildPythonPackage
, lxml
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "unittest-xml-reporting"; pname = "unittest-xml-reporting";
version = "3.2.0"; version = "3.2.0";
disabled = isPy27; disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "xmlrunner";
repo = "unittest-xml-reporting";
rev = version;
sha256 = "sha256-lOJ/+8CVJUXdIaZLLF5PpPkG0DzlNgo46kRZ1Xy7Ju0=";
};
propagatedBuildInputs = [ propagatedBuildInputs = [
lxml lxml
six
]; ];
# The tarball from Pypi doesn't actually contain the unit tests checkInputs = [
doCheck = false; pytestCheckHook
];
pythonImportsCheck = [ "xmlrunner" ];
src = fetchPypi {
inherit pname version;
sha256 = "sha256-7djTFwtAw6gbjPkQ9GxqMErihH7AEDbQLpwPm4V2LSg=";
};
meta = with lib; { meta = with lib; {
homepage = "https://github.com/xmlrunner/unittest-xml-reporting/tree/master/"; homepage = "https://github.com/xmlrunner/unittest-xml-reporting";
description = "A unittest runner that can save test results to XML files"; description = "unittest-based test runner with Ant/JUnit like XML reporting";
license = lib.licenses.bsd2; license = licenses.bsd2;
maintainers = with lib.maintainers; [ rprospero ]; maintainers = with maintainers; [ rprospero SuperSandro2000 ];
}; };
} }