Merge pull request #274065 from fabaff/aiohomekit-bump

python311Packages.aiohappyeyeballs: init at 2.3.0, python311Packages.aiohomekit: 3.0.9 -> 3.1.0
This commit is contained in:
Fabian Affolter 2023-12-14 08:09:29 +01:00 committed by GitHub
commit 2c1baae2f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 79 additions and 24 deletions

View File

@ -1,28 +1,23 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
# build-system
, cython_3
, setuptools
# dependencies
, aiohappyeyeballs
, async-timeout
, buildPythonPackage
, chacha20poly1305-reuseable
, cython_3
, fetchFromGitHub
, mock
, noiseprotocol
, protobuf
, zeroconf
# tests
, mock
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
, zeroconf
}:
buildPythonPackage rec {
pname = "aioesphomeapi";
version = "19.2.1";
version = "21.0.0";
pyproject = true;
disabled = pythonOlder "3.9";
@ -31,7 +26,7 @@ buildPythonPackage rec {
owner = "esphome";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-WSWGO0kI1m6oaImUYZ6m5WKJ+xPs/rtn5wVq1bDr+bE=";
hash = "sha256-KT38NY1BZM6Qr1EeC05vM9IcVKO7GaEx0102TUzkyRE=";
};
nativeBuildInputs = [
@ -40,6 +35,7 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
aiohappyeyeballs
chacha20poly1305-reuseable
noiseprotocol
protobuf
@ -48,19 +44,20 @@ buildPythonPackage rec {
async-timeout
];
pythonImportsCheck = [
"aioesphomeapi"
];
nativeCheckInputs = [
mock
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"aioesphomeapi"
];
meta = with lib; {
changelog = "https://github.com/esphome/aioesphomeapi/releases/tag/v${version}";
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 ];
};

View File

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiohappyeyeballs";
version = "2.3.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "bdraco";
repo = "aiohappyeyeballs";
rev = "refs/tags/v${version}";
hash = "sha256-LMvELnN6Sy6DssXfH6fQ84N2rhdjqB8AlikTMidrjT4=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=aiohappyeyeballs --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"aiohappyeyeballs"
];
disabledTestPaths = [
# Test has typos
"tests/test_impl.py"
];
meta = with lib; {
description = "Modul for connecting with Happy Eyeballs";
homepage = "https://github.com/bdraco/aiohappyeyeballs";
changelog = "https://github.com/bdraco/aiohappyeyeballs/blob/${version}/CHANGELOG.md";
license = licenses.psfl;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, aiocoap
, aiohappyeyeballs
, async-interrupt
, bleak
, bleak-retry-connector
@ -19,16 +20,16 @@
buildPythonPackage rec {
pname = "aiohomekit";
version = "3.0.9";
format = "pyproject";
version = "3.1.0";
pyproject = true;
disabled = pythonOlder "3.9";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "Jc2k";
repo = pname;
repo = "aiohomekit";
rev = "refs/tags/${version}";
hash = "sha256-YaLSpWSaiEP7X+IujrQgXgWl3aPc1WDMq2yaMUTu328=";
hash = "sha256-yaPliPKa/mS9amUkEx/iM398HGoiKrR6miCtK7fThNw=";
};
nativeBuildInputs = [
@ -37,6 +38,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
aiocoap
aiohappyeyeballs
async-interrupt
bleak
bleak-retry-connector

View File

@ -218,6 +218,8 @@ self: super: with self; {
aiogram = callPackage ../development/python-modules/aiogram { };
aiohappyeyeballs = callPackage ../development/python-modules/aiohappyeyeballs { };
aioharmony = callPackage ../development/python-modules/aioharmony { };
aiohomekit = callPackage ../development/python-modules/aiohomekit { };