summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-bugzilla/default.nix
blob: 8c103537e00de04cc755e34efb03c2edd6f1be4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  requests,
  responses,
  pytestCheckHook,
  glibcLocalesUtf8,
}:

buildPythonPackage rec {
  pname = "python-bugzilla";
  version = "3.3.0";
  pyproject = true;

  src = fetchPypi {
    pname = "python_bugzilla";
    inherit version;
    hash = "sha256-4YIgFx4DPrO6YAxNE5NZ0BqhrOwdrrxDCJEORQdj3kc=";
  };

  build-system = [ setuptools ];

  dependencies = [ requests ];

  nativeCheckInputs = [
    pytestCheckHook
    glibcLocalesUtf8
    responses
  ];

  preCheck = ''
    mkdir -p check-phase
    export HOME=$(pwd)/check-phase
  '';

  meta = {
    homepage = "https://github.com/python-bugzilla/python-bugzilla";
    description = "Bugzilla XMLRPC access module";
    mainProgram = "bugzilla";
    license = lib.licenses.gpl2Plus;
    platforms = lib.platforms.all;
    maintainers = with lib.maintainers; [ pierron ];
  };
}