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