From 36a0517448efa84116c03c2a6b76f89a443c11a9 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sat, 26 Nov 2022 09:43:58 -0800 Subject: [PATCH] python310Packages.bugzilla: clean up dependencies and enable tests --- pkgs/development/python-modules/bugzilla/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/bugzilla/default.nix b/pkgs/development/python-modules/bugzilla/default.nix index 567c1084c5d7..3f201b876d4a 100644 --- a/pkgs/development/python-modules/bugzilla/default.nix +++ b/pkgs/development/python-modules/bugzilla/default.nix @@ -1,10 +1,8 @@ { lib , buildPythonPackage , fetchPypi -, pep8 -, coverage -, logilab-common , requests +, pytestCheckHook }: buildPythonPackage rec { @@ -17,9 +15,12 @@ buildPythonPackage rec { sha256 = "0q8c3k0kdnd11g2s56cp8va9365x0xfr2m2zn9fgxjijdyhwdic5"; }; - buildInputs = [ pep8 coverage logilab-common ]; propagatedBuildInputs = [ requests ]; + checkInputs = [ + pytestCheckHook + ]; + preCheck = '' mkdir -p check-phase export HOME=$(pwd)/check-phase @@ -28,7 +29,7 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://github.com/python-bugzilla/python-bugzilla"; description = "Bugzilla XMLRPC access module"; - license = licenses.gpl2; + license = licenses.gpl2Plus; platforms = platforms.all; maintainers = with maintainers; [ pierron ]; };