1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5
6 # build-system
7 poetry-core,
8
9 # dependencies
10 beautifulsoup4,
11 httpx,
12 pbkdf2,
13 pillow,
14 pyaes,
15 rsa,
16
17 # test dependencies
18 pytestCheckHook,
19}:
20
21buildPythonPackage rec {
22 pname = "audible";
23 version = "0.10.0";
24 pyproject = true;
25
26 src = fetchFromGitHub {
27 owner = "mkb79";
28 repo = "Audible";
29 tag = "v${version}";
30 hash = "sha256-ILGhjuPIxpRxu/dVDmz531FUgMWosk4P+onPJltuPIs=";
31 };
32
33 nativeBuildInputs = [ poetry-core ];
34
35 propagatedBuildInputs = [
36 pillow
37 beautifulsoup4
38 httpx
39 pbkdf2
40 pyaes
41 rsa
42 ];
43
44 nativeCheckInputs = [ pytestCheckHook ];
45
46 pythonImportsCheck = [ "audible" ];
47
48 meta = with lib; {
49 description = "A(Sync) Interface for internal Audible API written in pure Python";
50 license = licenses.agpl3Only;
51 homepage = "https://github.com/mkb79/Audible";
52 maintainers = with maintainers; [ jvanbruegge ];
53 };
54}