7bc014aa9c
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
28 lines
906 B
Nix
28 lines
906 B
Nix
{ lib, python3Packages, fetchFromGitHub }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "audible-cli";
|
|
version = "0.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mkb79";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-z7oLY+xu+rTHgIWLFQU/TTSQtxChwhfu8nXoI05QqLw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|