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