1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, chardet
6}:
7
8buildPythonPackage rec {
9 pname = "python-debian";
10 version = "0.1.48";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.5";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-YtUFR9BqVjjOHF6A19cB3fFpY7QHr89b3IPH3k25T3w=";
18 };
19
20 propagatedBuildInputs = [
21 chardet
22 ];
23
24 # No tests in archive
25 doCheck = false;
26
27 pythonImportsCheck = [
28 "debian"
29 ];
30
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; [ SuperSandro2000 ];
37 };
38}