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; [
21 propagatedBuildInputs = with python3Packages; [
40 export PATH=$out/bin:$PATH
41 installShellCompletion --cmd audible \
42 --bash <(source utils/code_completion/audible-complete-bash.sh) \
43 --fish <(source utils/code_completion/audible-complete-zsh-fish.sh) \
44 --zsh <(source utils/code_completion/audible-complete-zsh-fish.sh)
47 # upstream has no tests
50 pythonImportsCheck = [
54 passthru.updateScript = nix-update-script {
55 extraArgs = [ "--version-regex" "[0-9.]+" ];
59 description = "Command line interface for audible package. With the cli you can download your Audible books, cover, chapter files";
60 license = licenses.agpl3Only;
61 homepage = "https://github.com/mkb79/audible-cli";
62 changelog = "https://github.com/mkb79/audible-cli/blob/${src.rev}/CHANGELOG.md";
63 maintainers = with maintainers; [ jvanbruegge ];
64 mainProgram = "audible";