Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / debian / default.nix
blob70b33cfa7a3b72c99018ef737272b62e13a00ce9
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchPypi
5 , chardet
6 }:
8 buildPythonPackage rec {
9   pname = "python-debian";
10   version = "0.1.49";
11   format = "setuptools";
13   disabled = pythonOlder "3.5";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-jPZ3ow28tL56mVNsF+ETCKgnpNIgKNxZpn9sbdPw9Yw=";
18   };
20   propagatedBuildInputs = [
21     chardet
22   ];
24   # No tests in archive
25   doCheck = false;
27   pythonImportsCheck = [
28     "debian"
29   ];
31   meta = with lib; {
32     description = "Debian package related modules";
33     homepage = "https://salsa.debian.org/python-debian-team/python-debian";
34     changelog = "https://salsa.debian.org/python-debian-team/python-debian/-/blob/master/debian/changelog";
35     license = licenses.gpl2Plus;
36     maintainers = with maintainers; [ nickcao ];
37   };