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
897 B
Nix
Raw Normal View History

2022-05-14 13:54:36 +00:00
{ lib, python3Packages, fetchFromGitHub }:
python3Packages.buildPythonApplication rec {
pname = "audible-cli";
2022-06-08 09:29:50 +00:00
version = "0.2.0";
2022-05-14 13:54:36 +00:00
src = fetchFromGitHub {
owner = "mkb79";
repo = pname;
rev = "v${version}";
2022-06-08 09:29:50 +00:00
sha256 = "1dalil8aaywdshf48d45ap4mgzxbyzhklr8nga7qhpwi22w84cgz";
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 ];
};
}