Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 65 lines
Nix
at llvm-cleanup
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, aiohttp, asyncio-throttle, awesomeversion, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pytest-aiohttp, pytest-asyncio, pythonOlder, setuptools,}:
buildPythonPackage rec { pname = "aiohue"; version = "4.7.1"; pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub { owner = "home-assistant-libs"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-/9kATmBNhKXt2PWB1pRdMJr+QzP23ajQK+jA8BuJ7J4="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace 'version = "0.0.0"' 'version = "${version}"' '';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ awesomeversion aiohttp asyncio-throttle ];
nativeCheckInputs = [ pytestCheckHook pytest-asyncio pytest-aiohttp ];
pythonImportsCheck = [ "aiohue" "aiohue.discovery" ];
disabledTestPaths = [ # File are prefixed with test_ "examples/" ];
meta = with lib; { description = "Python package to talk to Philips Hue"; homepage = "https://github.com/home-assistant-libs/aiohue"; changelog = "https://github.com/home-assistant-libs/aiohue/releases/tag/${version}"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; };}