2023-12-02 22:59:48 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
|
2024-01-10 22:58:28 +00:00
|
|
|
# build-system
|
|
|
|
poetry-core,
|
2023-12-02 22:59:48 +00:00
|
|
|
|
2024-01-10 22:58:28 +00:00
|
|
|
# dependencies
|
2023-12-02 22:59:48 +00:00
|
|
|
beautifulsoup4,
|
|
|
|
httpx,
|
|
|
|
pbkdf2,
|
|
|
|
pillow,
|
|
|
|
pyaes,
|
|
|
|
rsa,
|
2024-01-10 22:58:28 +00:00
|
|
|
|
|
|
|
# test dependencies
|
|
|
|
pytestCheckHook,
|
2023-12-02 22:59:48 +00:00
|
|
|
}:
|
2022-05-14 13:54:07 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "audible";
|
2024-09-27 02:43:15 +00:00
|
|
|
version = "0.10.0";
|
2023-12-02 22:59:48 +00:00
|
|
|
pyproject = true;
|
2022-05-14 13:54:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkb79";
|
|
|
|
repo = "Audible";
|
2022-05-25 14:44:26 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-27 02:43:15 +00:00
|
|
|
hash = "sha256-ILGhjuPIxpRxu/dVDmz531FUgMWosk4P+onPJltuPIs=";
|
2022-05-14 13:54:07 +00:00
|
|
|
};
|
|
|
|
|
2023-12-02 22:59:48 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-01-10 22:58:28 +00:00
|
|
|
pillow
|
2023-12-02 22:59:48 +00:00
|
|
|
beautifulsoup4
|
|
|
|
httpx
|
|
|
|
pbkdf2
|
|
|
|
pyaes
|
|
|
|
rsa
|
|
|
|
];
|
2022-05-14 13:54:07 +00:00
|
|
|
|
2024-01-10 22:58:28 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-06-04 21:09:24 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|