Files
nixpkgs/pkgs/development/python-modules/python-apt/default.nix
2025-09-11 09:53:30 +01:00

46 lines
967 B
Nix

{
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";
rev = "refs/tags/${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;
};
}