Something went wrong. Try again.
lol
Something went wrong. Try again.
1.7 kB · 86 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system cython, setuptools,
# dependencies aiohappyeyeballs, async-interrupt, chacha20poly1305-reuseable, cryptography, noiseprotocol, protobuf, tzlocal, zeroconf,
# tests mock, pytest-asyncio, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "aioesphomeapi"; version = "44.13.3"; pyproject = true;
src = fetchFromGitHub { owner = "esphome"; repo = "aioesphomeapi"; tag = "v${finalAttrs.version}"; hash = "sha256-PCCz12AAZuhDzqgJGhYpncr2ICN6xWefi/s9icbMSck="; };
build-system = [ setuptools cython ];
pythonRelaxDeps = [ "cryptography" ];
dependencies = [ aiohappyeyeballs async-interrupt chacha20poly1305-reuseable cryptography noiseprotocol protobuf tzlocal zeroconf ];
nativeCheckInputs = [ mock pytest-asyncio pytestCheckHook ];
# Lack of network sandboxing leads to conflicting listeners when testing # this package e.g. in nixpkgs-review on the two suppoted python package sets. doCheck = !stdenv.hostPlatform.isDarwin;
disabledTestPaths = [ # benchmarking requires pytest-codespeed "tests/benchmarks" ];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "aioesphomeapi" ];
meta = { description = "Python Client for ESPHome native API"; homepage = "https://github.com/esphome/aioesphomeapi"; changelog = "https://github.com/esphome/aioesphomeapi/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab hexa ]; };})