mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
29 lines
906 B
Nix
29 lines
906 B
Nix
{ lib, python3Packages, fetchFromGitHub }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "audible-cli";
|
|
version = "0.2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mkb79";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-umIPHKPfWKlzEVyRKbBqmul/8n13EnpfYXmSQbQtLq8=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3Packages; [ aiofiles audible click httpx pillow tabulate toml tqdm packaging setuptools questionary ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "httpx>=0.20.0,<0.24.0" "httpx" \
|
|
--replace "audible>=0.8.2" "audible"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A command line interface for audible package. With the cli you can download your Audible books, cover, chapter files";
|
|
license = licenses.agpl3;
|
|
homepage = "https://github.com/mkb79/audible-cli";
|
|
maintainers = with maintainers; [ jvanbruegge ];
|
|
};
|
|
}
|