mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
55 lines
954 B
Nix
55 lines
954 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.10.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mkb79";
|
|
repo = "Audible";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ILGhjuPIxpRxu/dVDmz531FUgMWosk4P+onPJltuPIs=";
|
|
};
|
|
|
|
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.agpl3Only;
|
|
homepage = "https://github.com/mkb79/Audible";
|
|
maintainers = with maintainers; [ jvanbruegge ];
|
|
};
|
|
}
|