nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 28 lines 906 B view raw
1{ lib, python3Packages, fetchFromGitHub }: 2 3python3Packages.buildPythonApplication rec { 4 pname = "audible-cli"; 5 version = "0.2.4"; 6 7 src = fetchFromGitHub { 8 owner = "mkb79"; 9 repo = pname; 10 rev = "refs/tags/v${version}"; 11 sha256 = "sha256-umIPHKPfWKlzEVyRKbBqmul/8n13EnpfYXmSQbQtLq8="; 12 }; 13 14 propagatedBuildInputs = with python3Packages; [ aiofiles audible click httpx pillow tabulate toml tqdm packaging setuptools questionary ]; 15 16 postPatch = '' 17 substituteInPlace setup.py \ 18 --replace "httpx>=0.20.0,<0.24.0" "httpx" \ 19 --replace "audible>=0.8.2" "audible" 20 ''; 21 22 meta = with lib; { 23 description = "A command line interface for audible package. With the cli you can download your Audible books, cover, chapter files"; 24 license = licenses.agpl3; 25 homepage = "https://github.com/mkb79/audible-cli"; 26 maintainers = with maintainers; [ jvanbruegge ]; 27 }; 28}