1{ lib, fetchFromGitHub, buildPythonPackage, beautifulsoup4, httpx, pbkdf2, pillow, pyaes, rsa }:
2
3buildPythonPackage rec {
4 pname = "audible";
5 version = "0.8.2";
6
7 src = fetchFromGitHub {
8 owner = "mkb79";
9 repo = "Audible";
10 rev = "refs/tags/v${version}";
11 hash = "sha256-SIEDBuMCC/Hap2mGVbKEFic96ClN369SEsV06Sg+poY=";
12 };
13
14 propagatedBuildInputs = [ beautifulsoup4 httpx pbkdf2 pillow pyaes rsa ];
15
16 postPatch = ''
17 sed -i "s/httpx.*/httpx',/" setup.py
18 '';
19
20 # has no tests
21 doCheck = false;
22
23 pythonImportsCheck = [ "audible"];
24
25 meta = with lib; {
26 description = "A(Sync) Interface for internal Audible API written in pure Python";
27 license = licenses.agpl3;
28 homepage = "https://github.com/mkb79/Audible";
29 maintainers = with maintainers; [ jvanbruegge ];
30 };
31}