mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
79 lines
1.6 KiB
Nix
79 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
nix-update-script,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "audible-cli";
|
|
version = "0.3.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mkb79";
|
|
repo = "audible-cli";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-AYL7lcYYY7gK12Id94aHRWRlCiznnF4r+lpI5VFpAWY=";
|
|
};
|
|
|
|
nativeBuildInputs =
|
|
with python3Packages;
|
|
[
|
|
setuptools
|
|
]
|
|
++ [
|
|
installShellFiles
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
aiofiles
|
|
audible
|
|
click
|
|
httpx
|
|
packaging
|
|
pillow
|
|
questionary
|
|
setuptools
|
|
tabulate
|
|
toml
|
|
tqdm
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"httpx"
|
|
];
|
|
|
|
postInstall = ''
|
|
export PATH=$out/bin:$PATH
|
|
installShellCompletion --cmd audible \
|
|
--bash <(source utils/code_completion/audible-complete-bash.sh) \
|
|
--fish <(source utils/code_completion/audible-complete-zsh-fish.sh) \
|
|
--zsh <(source utils/code_completion/audible-complete-zsh-fish.sh)
|
|
'';
|
|
|
|
# upstream has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"audible_cli"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex"
|
|
"[0-9.]+"
|
|
];
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Command line interface for audible package. With the cli you can download your Audible books, cover, chapter files";
|
|
license = licenses.agpl3Only;
|
|
homepage = "https://github.com/mkb79/audible-cli";
|
|
changelog = "https://github.com/mkb79/audible-cli/blob/${src.rev}/CHANGELOG.md";
|
|
maintainers = with maintainers; [ jvanbruegge ];
|
|
mainProgram = "audible";
|
|
};
|
|
}
|