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