Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / debianbts / default.nix
blob67b43fdff3fbb4137c0dbca9d6d73df335a3cfee
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pysimplesoap
5 , pytestCheckHook
6 , pytest-xdist
7 , pythonOlder
8 , setuptools
9 }:
11 buildPythonPackage rec {
12   pname = "python-debianbts";
13   version = "4.0.2";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-JbPb0lZND96XLZNU97wMuT9iGNXVN2KTsZC2St6FfuU=";
21   };
23   postPatch = ''
24     sed -i "/--cov/d" pyproject.toml
25   '';
27   nativeBuildInputs = [
28     setuptools
29   ];
31   propagatedBuildInputs = [
32     pysimplesoap
33   ];
35   # Most tests require network access
36   doCheck = false;
38   pythonImportsCheck = [
39     "debianbts"
40   ];
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   };