mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
Merge pull request #270272 from SuperSandro2000/hass-govee
python3.pkgs.govee-led-wez: init at 0.0.15, home-assistant.custom-components.govee-lan: init at unstable-2023-06-10
This commit is contained in:
commit
db8268bdaf
55
pkgs/development/python-modules/govee-led-wez/default.nix
Normal file
55
pkgs/development/python-modules/govee-led-wez/default.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, bleak
|
||||
, bleak-retry-connector
|
||||
, buildPythonPackage
|
||||
, certifi
|
||||
, fetchFromGitHub
|
||||
, hatchling
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "govee-led-wez";
|
||||
version = "0.0.15";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wez";
|
||||
repo = "govee-py";
|
||||
# https://github.com/wez/govee-py/issues/2
|
||||
rev = "931273e3689838613d63bc1bcc65ee744fa999f4";
|
||||
hash = "sha256-VMH7sot9e2SYMyBNutyW6oCCjp2N+EKukxn1Dla3AlY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
bleak
|
||||
bleak-retry-connector
|
||||
certifi
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"govee_led_wez"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Control Govee Lights from Python";
|
||||
homepage = "https://github.com/wez/govee-py";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
@ -3,6 +3,10 @@
|
||||
|
||||
{
|
||||
adaptive_lighting = callPackage ./adaptive_lighting {};
|
||||
|
||||
govee-lan = callPackage ./govee-lan {};
|
||||
|
||||
miele = callPackage ./miele {};
|
||||
|
||||
prometheus_sensor = callPackage ./prometheus_sensor {};
|
||||
}
|
||||
|
@ -0,0 +1,39 @@
|
||||
{ lib
|
||||
, buildHomeAssistantComponent
|
||||
, fetchFromGitHub
|
||||
, govee-led-wez
|
||||
}:
|
||||
|
||||
buildHomeAssistantComponent {
|
||||
owner = "wez";
|
||||
domain = "govee_lan";
|
||||
version = "unstable-2023-06-10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wez";
|
||||
repo = "govee-lan-hass";
|
||||
rev = "18d8455510d158496f7e5d4f0286f58bd61042bb";
|
||||
hash = "sha256-ZhrxEPBEi+Z+2ZOAQ1amhO0tqvhM6tyFQgoRIVNDtXY=";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
govee-led-wez
|
||||
];
|
||||
|
||||
# enable when pytest-homeassistant-custom-component is packaged
|
||||
doCheck = false;
|
||||
|
||||
# nativeCheckInputs = [
|
||||
# pytest-homeassistant-custom-component
|
||||
# pytestCheckHook
|
||||
# ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Control Govee lights via the LAN API from Home Assistant";
|
||||
homepage = "https://github.com/wez/govee-lan-hass";
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
@ -4741,6 +4741,8 @@ self: super: with self; {
|
||||
|
||||
govee-ble = callPackage ../development/python-modules/govee-ble { };
|
||||
|
||||
govee-led-wez = callPackage ../development/python-modules/govee-led-wez { };
|
||||
|
||||
goveelights = callPackage ../development/python-modules/goveelights { };
|
||||
|
||||
gpapi = callPackage ../development/python-modules/gpapi { };
|
||||
|
Loading…
Reference in New Issue
Block a user