2022-06-16 17:23:12 +00:00
|
|
|
{ lib, python3Packages, fetchFromGitHub }:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "audible-cli";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.2.4";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkb79";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-umIPHKPfWKlzEVyRKbBqmul/8n13EnpfYXmSQbQtLq8=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [ aiofiles audible click httpx pillow tabulate toml tqdm packaging setuptools questionary ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2022-07-14 12:49:19 +00:00
|
|
|
--replace "httpx>=0.20.0,<0.24.0" "httpx" \
|
|
|
|
--replace "audible>=0.8.2" "audible"
|
2022-06-16 17:23:12 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|