nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 963 B view raw
1{ 2 lib, 3 aiohttp, 4 bleak, 5 bleak-retry-connector, 6 buildPythonPackage, 7 certifi, 8 fetchFromGitHub, 9 hatchling, 10 pytest-asyncio, 11 pytestCheckHook, 12}: 13 14buildPythonPackage { 15 pname = "govee-led-wez"; 16 version = "0.0.15"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "wez"; 21 repo = "govee-py"; 22 # https://github.com/wez/govee-py/issues/2 23 rev = "931273e3689838613d63bc1bcc65ee744fa999f4"; 24 hash = "sha256-VMH7sot9e2SYMyBNutyW6oCCjp2N+EKukxn1Dla3AlY="; 25 }; 26 27 nativeBuildInputs = [ hatchling ]; 28 29 propagatedBuildInputs = [ 30 aiohttp 31 bleak 32 bleak-retry-connector 33 certifi 34 ]; 35 36 nativeCheckInputs = [ 37 pytest-asyncio 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ "govee_led_wez" ]; 42 43 meta = { 44 description = "Control Govee Lights from Python"; 45 homepage = "https://github.com/wez/govee-py"; 46 license = with lib.licenses; [ mit ]; 47 maintainers = with lib.maintainers; [ SuperSandro2000 ]; 48 }; 49}