mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
30 lines
805 B
Nix
30 lines
805 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|