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

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

55 lines
954 B
Nix
Raw Permalink Normal View History

{
lib,
fetchFromGitHub,
buildPythonPackage,
2024-01-10 22:58:28 +00:00
# build-system
poetry-core,
2024-01-10 22:58:28 +00:00
# dependencies
beautifulsoup4,
httpx,
pbkdf2,
pillow,
pyaes,
rsa,
2024-01-10 22:58:28 +00:00
# test dependencies
pytestCheckHook,
}:
2022-05-14 13:54:07 +00:00
buildPythonPackage rec {
pname = "audible";
version = "0.10.0";
pyproject = true;
2022-05-14 13:54:07 +00:00
src = fetchFromGitHub {
owner = "mkb79";
repo = "Audible";
rev = "refs/tags/v${version}";
hash = "sha256-ILGhjuPIxpRxu/dVDmz531FUgMWosk4P+onPJltuPIs=";
2022-05-14 13:54:07 +00:00
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
2024-01-10 22:58:28 +00:00
pillow
beautifulsoup4
httpx
pbkdf2
pyaes
rsa
];
2022-05-14 13:54:07 +00:00
2024-01-10 22:58:28 +00:00
nativeCheckInputs = [ pytestCheckHook ];
2024-01-10 22:58:28 +00:00
pythonImportsCheck = [ "audible" ];
2022-05-14 13:54:07 +00:00
meta = with lib; {
description = "A(Sync) Interface for internal Audible API written in pure Python";
2024-03-19 12:26:06 +00:00
license = licenses.agpl3Only;
2022-05-14 13:54:07 +00:00
homepage = "https://github.com/mkb79/Audible";
maintainers = with maintainers; [ jvanbruegge ];
};
}