Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 83 lines
Nix
at flake-libs
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder,
# build-system cython, setuptools,
# dependencies aiohappyeyeballs, async-interrupt, async-timeout, chacha20poly1305-reuseable, cryptography, noiseprotocol, protobuf, zeroconf,
# tests mock, pytest-asyncio, pytestCheckHook,}:
buildPythonPackage rec { pname = "aioesphomeapi"; version = "30.2.0"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "esphome"; repo = "aioesphomeapi"; tag = "v${version}"; hash = "sha256-2mH1+/58DSWYWl/mTBsCp6r77OUNWV5rR+4mnbKV9PE="; };
build-system = [ setuptools cython ];
pythonRelaxDeps = [ "cryptography" ];
dependencies = [ aiohappyeyeballs async-interrupt chacha20poly1305-reuseable cryptography noiseprotocol protobuf zeroconf ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
nativeCheckInputs = [ mock pytest-asyncio pytestCheckHook ];
disabledTestPaths = [ # benchmarking requires pytest-codespeed "tests/benchmarks" ];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "aioesphomeapi" ];
meta = with lib; { description = "Python Client for ESPHome native API"; homepage = "https://github.com/esphome/aioesphomeapi"; changelog = "https://github.com/esphome/aioesphomeapi/releases/tag/${src.tag}"; license = licenses.mit; maintainers = with maintainers; [ fab hexa ]; };}