python3Packages.python-apt: init at 2.7.6

This commit is contained in:
Jon Seager 2024-04-18 12:34:42 +01:00
parent 9884c918e7
commit ac694ae628
No known key found for this signature in database
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{
lib,
apt,
buildPythonPackage,
fetchgit,
setuptools,
}:
buildPythonPackage rec {
pname = "apt";
version = "2.7.6";
pyproject = true;
src = fetchgit {
url = "https://git.launchpad.net/python-apt";
rev = "refs/tags/${version}";
hash = "sha256-1jTe8ncMKV78+cfSZ6p6qdjxs0plZLB4VwVtPLtDlAc=";
};
buildInputs = [ apt.dev ];
nativeBuildInputs = [ setuptools ];
# Ensure the version is set properly without trying to invoke
# dpkg-parsechangelog
env.DEBVER = "${version}";
pythonImportsCheck = [ "apt_pkg" ];
meta = {
description = "Python bindings for APT";
homepage = "https://launchpad.net/python-apt";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ jnsgruk ];
platforms = lib.platforms.linux;
};
}

View File

@ -12184,6 +12184,8 @@ self: super: with self; {
python3-openid = callPackage ../development/python-modules/python3-openid { };
python-apt = callPackage ../development/python-modules/python-apt { };
python-arango = callPackage ../development/python-modules/python-arango { };
python-awair = callPackage ../development/python-modules/python-awair { };