1{ lib 2, buildPythonPackage 3, fetchPypi 4, requests 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "bugzilla"; 10 version = "2.3.0"; 11 12 src = fetchPypi { 13 pname = "python-${pname}"; 14 inherit version; 15 sha256 = "0q8c3k0kdnd11g2s56cp8va9365x0xfr2m2zn9fgxjijdyhwdic5"; 16 }; 17 18 propagatedBuildInputs = [ requests ]; 19 20 nativeCheckInputs = [ 21 pytestCheckHook 22 ]; 23 24 preCheck = '' 25 mkdir -p check-phase 26 export HOME=$(pwd)/check-phase 27 ''; 28 29 meta = with lib; { 30 homepage = "https://github.com/python-bugzilla/python-bugzilla"; 31 description = "Bugzilla XMLRPC access module"; 32 license = licenses.gpl2Plus; 33 platforms = platforms.all; 34 maintainers = with maintainers; [ pierron ]; 35 }; 36}