2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pydantic
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, websockets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiolivisi";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "0.0.19";
|
2022-12-17 10:02:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-24 00:07:29 +00:00
|
|
|
hash = "sha256-eT/sqLykd4gQVt972646mH+QArf7p/XQH53/UtsuKRs=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# https://github.com/StefanIacobLivisi/aiolivisi/pull/3
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace 'REQUIREMENTS = list(val.strip() for val in open("requirements.txt"))' "" \
|
|
|
|
--replace "REQUIREMENTS," "[],"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
pydantic
|
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiolivisi"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Module to communicate with LIVISI Smart Home Controller";
|
|
|
|
homepage = "https://github.com/StefanIacobLivisi/aiolivisi";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/StefanIacobLivisi/aiolivisi/releases/tag/${version}";
|
2022-12-17 10:02:37 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|