1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pysimplesoap,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "python-debianbts";
12 version = "4.0.2";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-JbPb0lZND96XLZNU97wMuT9iGNXVN2KTsZC2St6FfuU=";
20 };
21
22 postPatch = ''
23 sed -i "/--cov/d" pyproject.toml
24 '';
25
26 nativeBuildInputs = [ setuptools ];
27
28 propagatedBuildInputs = [ pysimplesoap ];
29
30 # Most tests require network access
31 doCheck = false;
32
33 pythonImportsCheck = [ "debianbts" ];
34
35 meta = with lib; {
36 description = "Python interface to Debian's Bug Tracking System";
37 mainProgram = "debianbts";
38 homepage = "https://github.com/venthur/python-debianbts";
39 downloadPage = "https://pypi.org/project/python-debianbts/";
40 changelog = "https://github.com/venthur/python-debianbts/blob/${version}/CHANGELOG.md";
41 license = licenses.mit;
42 maintainers = with maintainers; [ nicoo ];
43 };
44}