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