1 { lib, python3Packages, fetchFromGitHub, installShellFiles, nix-update-script }:
3 python3Packages.buildPythonApplication rec {
8 src = fetchFromGitHub {
11 rev = "refs/tags/v${version}";
12 hash = "sha256-AYL7lcYYY7gK12Id94aHRWRlCiznnF4r+lpI5VFpAWY=";
15 nativeBuildInputs = with python3Packages; [
22 propagatedBuildInputs = with python3Packages; [
41 export PATH=$out/bin:$PATH
42 installShellCompletion --cmd audible \
43 --bash <(source utils/code_completion/audible-complete-bash.sh) \
44 --fish <(source utils/code_completion/audible-complete-zsh-fish.sh) \
45 --zsh <(source utils/code_completion/audible-complete-zsh-fish.sh)
48 # upstream has no tests
51 pythonImportsCheck = [
55 passthru.updateScript = nix-update-script { };
58 description = "A command line interface for audible package. With the cli you can download your Audible books, cover, chapter files";
59 license = licenses.agpl3Only;
60 homepage = "https://github.com/mkb79/audible-cli";
61 changelog = "https://github.com/mkb79/audible-cli/blob/${src.rev}/CHANGELOG.md";
62 maintainers = with maintainers; [ jvanbruegge ];
63 mainProgram = "audible";