btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / development / python-modules / python-bugzilla / default.nix
blob1aa40b81c0fb0aa865c887c77f59dcbafb1ca6bb
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   setuptools,
6   requests,
7   responses,
8   pytestCheckHook,
9   glibcLocalesUtf8,
12 buildPythonPackage rec {
13   pname = "python-bugzilla";
14   version = "3.3.0";
15   pyproject = true;
17   src = fetchPypi {
18     pname = "python_bugzilla";
19     inherit version;
20     hash = "sha256-4YIgFx4DPrO6YAxNE5NZ0BqhrOwdrrxDCJEORQdj3kc=";
21   };
23   build-system = [ setuptools ];
25   dependencies = [ requests ];
27   nativeCheckInputs = [
28     pytestCheckHook
29     glibcLocalesUtf8
30     responses
31   ];
33   preCheck = ''
34     mkdir -p check-phase
35     export HOME=$(pwd)/check-phase
36   '';
38   meta = with lib; {
39     homepage = "https://github.com/python-bugzilla/python-bugzilla";
40     description = "Bugzilla XMLRPC access module";
41     mainProgram = "bugzilla";
42     license = licenses.gpl2Plus;
43     platforms = platforms.all;
44     maintainers = with maintainers; [ pierron ];
45   };