1{
2 lib,
3 apt,
4 buildPythonPackage,
5 fetchFromGitLab,
6 python,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "apt";
12 version = "2.8.0";
13
14 pyproject = true;
15
16 src = fetchFromGitLab {
17 domain = "salsa.debian.org";
18 owner = "apt-team";
19 repo = "python-apt";
20 rev = "refs/tags/${version}";
21 hash = "sha256-7l7rgyJ28iQuL6ShF/KYwL/kAXpLPTqnUIavVxNF+wU=";
22 };
23
24 buildInputs = [ apt.dev ];
25
26 build-system = [ setuptools ];
27
28 # Ensure the version is set properly without trying to invoke
29 # dpkg-parsechangelog
30 env.DEBVER = version;
31
32 pythonImportsCheck = [ "apt_pkg" ];
33
34 meta = {
35 changelog = "https://salsa.debian.org/apt-team/python-apt/-/blob/${version}/debian/changelog";
36 description = "Python bindings for APT";
37 homepage = "https://launchpad.net/python-apt";
38 license = lib.licenses.gpl2;
39 maintainers = with lib.maintainers; [ jnsgruk ];
40 platforms = lib.platforms.linux;
41 };
42}