Merge pull request #168124 from jvanbruegge/audible-cli
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{ lib, fetchFromGitHub, buildPythonPackage, beautifulsoup4, httpx, pbkdf2, pillow, pyaes, rsa }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "audible";
|
||||
version = "0.8.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mkb79";
|
||||
repo = "Audible";
|
||||
rev = "v${version}";
|
||||
sha256 = "0fsb5av4s7fvpn0iryl8jj3lwffwlxgbwj46l3fidy0l58nq3b1d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ beautifulsoup4 httpx pbkdf2 pillow pyaes rsa ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'httpx>=0.20.*,<=0.22.*' 'httpx'
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "audible"];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A(Sync) Interface for internal Audible API written in pure Python";
|
||||
license = licenses.agpl3;
|
||||
homepage = "https://github.com/mkb79/Audible";
|
||||
maintainers = with maintainers; [ jvanbruegge ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{ lib, python3Packages, fetchFromGitHub }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "audible-cli";
|
||||
version = "0.1.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mkb79";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0i71vwq2bhndndb0mlx21bc5jkv75cr60max5iaxk23agg3xpgwv";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ aiofiles audible click httpx pillow tabulate toml tqdm packaging setuptools ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "httpx==0.20.*" "httpx" \
|
||||
--replace "audible==0.7.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 ];
|
||||
};
|
||||
}
|
||||
@@ -1104,6 +1104,8 @@ with pkgs;
|
||||
|
||||
arch-install-scripts = callPackage ../tools/misc/arch-install-scripts {};
|
||||
|
||||
audible-cli = callPackage ../tools/misc/audible-cli { };
|
||||
|
||||
auditwheel = callPackage ../tools/package-management/auditwheel { };
|
||||
|
||||
amidst = callPackage ../tools/games/minecraft/amidst { };
|
||||
|
||||
@@ -767,6 +767,8 @@ in {
|
||||
|
||||
aubio = callPackage ../development/python-modules/aubio { };
|
||||
|
||||
audible = callPackage ../development/python-modules/audible { };
|
||||
|
||||
audio-metadata = callPackage ../development/python-modules/audio-metadata { };
|
||||
|
||||
audioread = callPackage ../development/python-modules/audioread { };
|
||||
|
||||
Reference in New Issue
Block a user