diff --git a/pkgs/development/python-modules/junitparser/default.nix b/pkgs/development/python-modules/junitparser/default.nix index 3a712251fc5d..67d7ed15d573 100644 --- a/pkgs/development/python-modules/junitparser/default.nix +++ b/pkgs/development/python-modules/junitparser/default.nix @@ -2,30 +2,32 @@ , buildPythonPackage , fetchFromGitHub , future -, python +, glibcLocales +, lxml +, unittestCheckHook }: buildPythonPackage rec { pname = "junitparser"; - version = "1.4.1"; + version = "2.8.0"; src = fetchFromGitHub { - owner = "gastlygem"; + owner = "weiwei"; repo = pname; rev = version; - sha256 = "16xwayr0rbp7xdg7bzmyf8s7al0dhkbmkcnil66ax7r8bznp5lmp"; + hash = "sha256-rhDP05GSWT4K6Z2ip8C9+e3WbvBJOwP0vctvANBs7cw="; }; propagatedBuildInputs = [ future ]; - checkPhase = '' - ${python.interpreter} test.py - ''; + checkInputs = [ unittestCheckHook lxml glibcLocales ]; + + unittestFlagsArray = [ "-v" ]; meta = with lib; { - description = "A JUnit/xUnit Result XML Parser"; + description = "Manipulates JUnit/xUnit Result XML files"; license = licenses.asl20; - homepage = "https://github.com/gastlygem/junitparser"; + homepage = "https://github.com/weiwei/junitparser"; maintainers = with maintainers; [ multun ]; }; }