depot/third_party/nixpkgs/pkgs/development/python-modules/audible/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

57 lines
948 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
# build-system
, poetry-core
# dependencies
, beautifulsoup4
, httpx
, pbkdf2
, pillow
, pyaes
, rsa
# test dependencies
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "audible";
version = "0.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "mkb79";
repo = "Audible";
rev = "refs/tags/v${version}";
hash = "sha256-qLU8FjJBPKFgjpumPqRiiMBwZi+zW46iEmWM8UerMgs=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pillow
beautifulsoup4
httpx
pbkdf2
pyaes
rsa
];
nativeCheckInputs = [
pytestCheckHook
];
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 ];
};
}