nixpkgs/pkgs/tools/misc/audible-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
906 B
Nix
Raw Normal View History

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