nixpkgs-suyu/pkgs/development/python-modules/audible/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
810 B
Nix
Raw Normal View History

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