python310Packages.bugzilla: clean up dependencies and enable tests

This commit is contained in:
Theodore Ni 2022-11-26 09:43:58 -08:00
parent 10c2b21c3f
commit 36a0517448
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -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 ];
};