1{ 2 lib, 3 apt, 4 buildPythonPackage, 5 fetchgit, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "apt"; 11 version = "2.7.6"; 12 13 pyproject = true; 14 15 src = fetchgit { 16 url = "https://git.launchpad.net/python-apt"; 17 rev = "refs/tags/${version}"; 18 hash = "sha256-1jTe8ncMKV78+cfSZ6p6qdjxs0plZLB4VwVtPLtDlAc="; 19 }; 20 21 buildInputs = [ apt.dev ]; 22 23 nativeBuildInputs = [ setuptools ]; 24 25 # Ensure the version is set properly without trying to invoke 26 # dpkg-parsechangelog 27 env.DEBVER = "${version}"; 28 29 pythonImportsCheck = [ "apt_pkg" ]; 30 31 meta = { 32 description = "Python bindings for APT"; 33 homepage = "https://launchpad.net/python-apt"; 34 license = lib.licenses.gpl2; 35 maintainers = with lib.maintainers; [ jnsgruk ]; 36 platforms = lib.platforms.linux; 37 }; 38}