1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "govee-local-api"; 12 version = "2.2.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.10"; 16 17 src = fetchFromGitHub { 18 owner = "Galorhallen"; 19 repo = "govee-local-api"; 20 tag = "v${version}"; 21 hash = "sha256-DjerH/51ta0Q3by47+Xo0Fp3nk4igum00mSZeoswYxM="; 22 }; 23 24 postPatch = '' 25 # dont depend on poetry at runtime 26 # https://github.com/Galorhallen/govee-local-api/pull/75/files#r1943826599 27 sed -i '/poetry = "^1.8.5"/d' pyproject.toml 28 ''; 29 30 build-system = [ poetry-core ]; 31 32 nativeCheckInputs = [ pytestCheckHook ]; 33 34 pythonImportsCheck = [ "govee_local_api" ]; 35 36 meta = with lib; { 37 description = "Library to communicate with Govee local API"; 38 homepage = "https://github.com/Galorhallen/govee-local-api"; 39 changelog = "https://github.com/Galorhallen/govee-local-api/releases/tag/${src.tag}"; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}