Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 66 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, async-timeout, buildPythonPackage, base36, chacha20poly1305-reuseable, cryptography, fetchFromGitHub, h11, orjson, pyqrcode, pytest-asyncio, pytest-timeout, pytestCheckHook, pythonOlder, setuptools, zeroconf,}:
buildPythonPackage rec { pname = "hap-python"; version = "5.0.0"; pyproject = true;
src = fetchFromGitHub { owner = "ikalchev"; repo = "HAP-python"; tag = version; hash = "sha256-+EhxoO5X/ANGh008WE0sJeBsu8SRnuds3hXGxNWpKnk="; };
build-system = [ setuptools ];
dependencies = [ chacha20poly1305-reuseable cryptography h11 orjson zeroconf ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
optional-dependencies.QRCode = [ base36 pyqrcode ];
nativeCheckInputs = [ pytest-asyncio pytest-timeout pytestCheckHook ] ++ optional-dependencies.QRCode;
pythonImportsCheck = [ "pyhap" ];
meta = { description = "HomeKit Accessory Protocol implementation"; homepage = "https://github.com/ikalchev/HAP-python"; changelog = "https://github.com/ikalchev/HAP-python/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ oro ]; };}