Unverified Commit ac694ae6 authored by Jon Seager's avatar Jon Seager
Browse files

python3Packages.python-apt: init at 2.7.6

parent 9884c918
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
{
  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;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };