nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, fetchFromGitHub, buildPythonPackage, beautifulsoup4, httpx, pbkdf2, pillow, pyaes, rsa }:
2
3buildPythonPackage rec {
4 pname = "audible";
5 version = "0.8.1";
6
7 src = fetchFromGitHub {
8 owner = "mkb79";
9 repo = "Audible";
10 rev = "v${version}";
11 sha256 = "0fsb5av4s7fvpn0iryl8jj3lwffwlxgbwj46l3fidy0l58nq3b1d";
12 };
13
14 propagatedBuildInputs = [ beautifulsoup4 httpx pbkdf2 pillow pyaes rsa ];
15
16 postPatch = ''
17 substituteInPlace setup.py \
18 --replace 'httpx>=0.20.*,<=0.22.*' 'httpx'
19 '';
20
21 pythonImportsCheck = [ "audible"];
22
23 meta = with lib; {
24 description = "A(Sync) Interface for internal Audible API written in pure Python";
25 license = licenses.agpl3;
26 homepage = "https://github.com/mkb79/Audible";
27 maintainers = with maintainers; [ jvanbruegge ];
28 };
29}