2022-06-16 17:23:12 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, beautifulsoup4, httpx, pbkdf2, pillow, pyaes, rsa }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "audible";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "0.8.2";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkb79";
|
|
|
|
repo = "Audible";
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-SIEDBuMCC/Hap2mGVbKEFic96ClN369SEsV06Sg+poY=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ beautifulsoup4 httpx pbkdf2 pillow pyaes rsa ];
|
|
|
|
|
|
|
|
postPatch = ''
|
2022-06-26 10:26:21 +00:00
|
|
|
sed -i "s/httpx.*/httpx',/" setup.py
|
2022-06-16 17:23:12 +00:00
|
|
|
'';
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|