Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 84 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485{ 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 = "33.1.1"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "esphome"; repo = "aioesphomeapi"; tag = "v${version}"; hash = "sha256-vXBTumh1oB1vTVlX4VJvIUTnkYLG9j/8cNuHFQ2PklY="; };
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 ]; };}