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