nixpkgs/pkgs/tools/misc/audible-cli/default.nix
2022-06-08 11:29:50 +02:00

29 lines
897 B
Nix

{ lib, python3Packages, fetchFromGitHub }:
python3Packages.buildPythonApplication rec {
pname = "audible-cli";
version = "0.2.0";
src = fetchFromGitHub {
owner = "mkb79";
repo = pname;
rev = "v${version}";
sha256 = "1dalil8aaywdshf48d45ap4mgzxbyzhklr8nga7qhpwi22w84cgz";
};
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 ];
};
}