472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
requests,
|
|
setuptools,
|
|
ujson,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ayla-iot-unofficial";
|
|
version = "1.4.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rewardone";
|
|
repo = "ayla-iot-unofficial";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-SAfDpABOWsic3kqsN0txlchEIRKJ0xtpJERZUH5CKR0=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
requests
|
|
ujson
|
|
];
|
|
|
|
pythonImportsCheck = [ "ayla_iot_unofficial" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [ "tests/ayla_iot_unofficial.py" ];
|
|
|
|
# tests interact with the actual API
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
changelog = "https://github.com/rewardone/ayla-iot-unofficial/releases/tag/v${version}";
|
|
description = "Unofficial python library for interacting with the Ayla IoT API";
|
|
homepage = "https://github.com/rewardone/ayla-iot-unofficial";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|