about summary refs log tree commit diff
path: root/pkgs/development/python-modules/debianbts/default.nix
blob: 013f8724067ce3c0176bdae78352b5539e5421ba (plain) (blame)
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
47
48
49
{ lib
, buildPythonPackage
, fetchPypi
, pysimplesoap
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "python-debianbts";
  version = "4.0.2";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-JbPb0lZND96XLZNU97wMuT9iGNXVN2KTsZC2St6FfuU=";
  };

  postPatch = ''
    sed -i "/--cov/d" pyproject.toml
  '';

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    pysimplesoap
  ];

  # Most tests require network access
  doCheck = false;

  pythonImportsCheck = [
    "debianbts"
  ];

  meta = with lib; {
    description = "Python interface to Debian's Bug Tracking System";
    mainProgram = "debianbts";
    homepage = "https://github.com/venthur/python-debianbts";
    downloadPage = "https://pypi.org/project/python-debianbts/";
    changelog = "https://github.com/venthur/python-debianbts/blob/${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ nicoo ];
  };
}