Merge pull request #205626 from fabaff/aiolivisi
python310Packages.aiolivisi: init at 0.0.14
This commit is contained in:
commit
02eed54d39
3 changed files with 54 additions and 1 deletions
49
pkgs/development/python-modules/aiolivisi/default.nix
Normal file
49
pkgs/development/python-modules/aiolivisi/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pydantic
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, websockets
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiolivisi";
|
||||
version = "0.0.14";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-n7EQCOItr6MZRnTCfkJrq39bDbw09XyIRzSuZR2TsNg=";
|
||||
};
|
||||
|
||||
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";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -1898,7 +1898,8 @@
|
|||
pylitterbot
|
||||
];
|
||||
"livisi" = ps: with ps; [
|
||||
]; # missing inputs: aiolivisi
|
||||
aiolivisi
|
||||
];
|
||||
"llamalab_automate" = ps: with ps; [
|
||||
];
|
||||
"local_calendar" = ps: with ps; [
|
||||
|
@ -4396,6 +4397,7 @@
|
|||
"lifx"
|
||||
"light"
|
||||
"litterrobot"
|
||||
"livisi"
|
||||
"local_calendar"
|
||||
"local_file"
|
||||
"local_ip"
|
||||
|
|
|
@ -244,6 +244,8 @@ self: super: with self; {
|
|||
|
||||
aiolip = callPackage ../development/python-modules/aiolip { };
|
||||
|
||||
aiolivisi = callPackage ../development/python-modules/aiolivisi { };
|
||||
|
||||
aiolyric = callPackage ../development/python-modules/aiolyric { };
|
||||
|
||||
aiomisc = callPackage ../development/python-modules/aiomisc { };
|
||||
|
|
Loading…
Reference in a new issue