2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
# build-system
|
2024-06-05 15:53:02 +00:00
|
|
|
poetry-core,
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
# dependencies
|
2024-06-05 15:53:02 +00:00
|
|
|
beautifulsoup4,
|
|
|
|
httpx,
|
|
|
|
pbkdf2,
|
|
|
|
pillow,
|
|
|
|
pyaes,
|
|
|
|
rsa,
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
# test dependencies
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
2024-01-13 08:15:51 +00:00
|
|
|
}:
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "audible";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.9.1";
|
|
|
|
pyproject = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkb79";
|
|
|
|
repo = "Audible";
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-qLU8FjJBPKFgjpumPqRiiMBwZi+zW46iEmWM8UerMgs=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pillow
|
|
|
|
beautifulsoup4
|
|
|
|
httpx
|
|
|
|
pbkdf2
|
|
|
|
pyaes
|
|
|
|
rsa
|
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
pythonImportsCheck = [ "audible" ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A(Sync) Interface for internal Audible API written in pure Python";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = licenses.agpl3Only;
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/mkb79/Audible";
|
|
|
|
maintainers = with maintainers; [ jvanbruegge ];
|
|
|
|
};
|
|
|
|
}
|