d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
71 lines
1.3 KiB
Nix
71 lines
1.3 KiB
Nix
{ lib
|
|
, aiofiles
|
|
, aiohttp
|
|
, authcaptureproxy
|
|
, backoff
|
|
, beautifulsoup4
|
|
, buildPythonPackage
|
|
, certifi
|
|
, cryptography
|
|
, fetchFromGitLab
|
|
, poetry-core
|
|
, pyotp
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, requests
|
|
, simplejson
|
|
, yarl
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "alexapy";
|
|
version = "1.26.9";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "keatontaylor";
|
|
repo = "alexapy";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-mDh4kYwRXpvVCh+nBmQblmlmgG98P6+UmgG4ZioQ68M=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"aiofiles"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiofiles
|
|
aiohttp
|
|
authcaptureproxy
|
|
backoff
|
|
beautifulsoup4
|
|
certifi
|
|
cryptography
|
|
pyotp
|
|
requests
|
|
simplejson
|
|
yarl
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"alexapy"
|
|
];
|
|
|
|
# Module has no tests (only a websocket test which seems unrelated to the module)
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Python Package for controlling Alexa devices (echo dot, etc) programmatically";
|
|
homepage = "https://gitlab.com/keatontaylor/alexapy";
|
|
changelog = "https://gitlab.com/keatontaylor/alexapy/-/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|