mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
3c7e88e3f6
Diff: https://github.com/esphome/aioesphomeapi/compare/refs/tags/v21.0.0...v21.0.1 Changelog: https://github.com/esphome/aioesphomeapi/releases/tag/v21.0.1
65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{ lib
|
|
, aiohappyeyeballs
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, chacha20poly1305-reuseable
|
|
, cython_3
|
|
, fetchFromGitHub
|
|
, mock
|
|
, noiseprotocol
|
|
, protobuf
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, zeroconf
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioesphomeapi";
|
|
version = "21.0.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "esphome";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-HPnyFHHx1BahqzvRChT85BaG4eJM3qvTq2Tpbqb3SDI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
cython_3
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohappyeyeballs
|
|
chacha20poly1305-reuseable
|
|
noiseprotocol
|
|
protobuf
|
|
zeroconf
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
async-timeout
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
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/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab hexa ];
|
|
};
|
|
}
|