Files
nixpkgs/pkgs/development/python-modules/govee-local-api/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

44 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "govee-local-api";
version = "2.2.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "Galorhallen";
repo = "govee-local-api";
tag = "v${version}";
hash = "sha256-DjerH/51ta0Q3by47+Xo0Fp3nk4igum00mSZeoswYxM=";
};
postPatch = ''
# dont depend on poetry at runtime
# https://github.com/Galorhallen/govee-local-api/pull/75/files#r1943826599
sed -i '/poetry = "^1.8.5"/d' pyproject.toml
'';
build-system = [ poetry-core ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "govee_local_api" ];
meta = {
description = "Library to communicate with Govee local API";
homepage = "https://github.com/Galorhallen/govee-local-api";
changelog = "https://github.com/Galorhallen/govee-local-api/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}