
Diff: https://github.com/Galorhallen/govee-local-api/compare/refs/tags/v2.0.1...v2.1.0 Changelog: https://github.com/Galorhallen/govee-local-api/releases/tag/v2.1.0
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "govee-local-api";
|
|
version = "2.1.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Galorhallen";
|
|
repo = "govee-local-api";
|
|
tag = "v${version}";
|
|
hash = "sha256-a5x4RbZ5+ryByr6/yGJw2/dNJBR7/JTYBcvA+Eqygqc=";
|
|
};
|
|
|
|
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 = with lib; {
|
|
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 = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|