Files
nixpkgs/pkgs/development/python-modules/govee-led-wez/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1015 B
Nix

{
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 = {
description = "Control Govee Lights from Python";
homepage = "https://github.com/wez/govee-py";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ SuperSandro2000 ];
};
}