depot/third_party/nixpkgs/pkgs/development/python-modules/audible/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

31 lines
810 B
Nix

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