12 src = fetchFromGitHub {
13 owner = "rickysarraf";
16 hash = "sha256-KkJwQ9EpOSJK9PaM747l6Gqp8Z8SWvuo3TJ+Ry6d0l4=";
19 python3Packages.buildPythonApplication {
20 inherit pname version src;
22 nativeBuildInputs = [ installShellFiles ];
25 substituteInPlace org.debian.apt.aptoffline.policy \
26 --replace-fail /usr/bin/ "$out/bin"
28 substituteInPlace apt_offline_core/AptOfflineCoreLib.py \
29 --replace-fail /usr/bin/gpgv "${lib.getBin gnupg}/bin/gpgv"
33 installManPage apt-offline.8
37 rm "$out/bin/apt-offline-gui" "$out/bin/apt-offline-gui-pkexec"
40 doCheck = false; # API incompatibilities, maybe?
42 pythonImportsCheck = [ "apt_offline_core" ];
44 outputs = [ "out" "man" ];
47 homepage = "https://github.com/rickysarraf/apt-offline";
48 description = "Offline APT package manager";
49 license = with lib.licenses; [ gpl3Plus ];
50 mainProgram = "apt-offline";
51 maintainers = with lib.maintainers; [ AndersonTorres ];
54 # TODO: verify GUI and pkexec