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:
commit
2c1baae2f9
@ -1,28 +1,23 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, aiohappyeyeballs
|
||||||
, fetchFromGitHub
|
|
||||||
, pythonOlder
|
|
||||||
|
|
||||||
# build-system
|
|
||||||
, cython_3
|
|
||||||
, setuptools
|
|
||||||
|
|
||||||
# dependencies
|
|
||||||
, async-timeout
|
, async-timeout
|
||||||
|
, buildPythonPackage
|
||||||
, chacha20poly1305-reuseable
|
, chacha20poly1305-reuseable
|
||||||
|
, cython_3
|
||||||
|
, fetchFromGitHub
|
||||||
|
, mock
|
||||||
, noiseprotocol
|
, noiseprotocol
|
||||||
, protobuf
|
, protobuf
|
||||||
, zeroconf
|
|
||||||
|
|
||||||
# tests
|
|
||||||
, mock
|
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
|
, zeroconf
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aioesphomeapi";
|
pname = "aioesphomeapi";
|
||||||
version = "19.2.1";
|
version = "21.0.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.9";
|
disabled = pythonOlder "3.9";
|
||||||
@ -31,7 +26,7 @@ buildPythonPackage rec {
|
|||||||
owner = "esphome";
|
owner = "esphome";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-WSWGO0kI1m6oaImUYZ6m5WKJ+xPs/rtn5wVq1bDr+bE=";
|
hash = "sha256-KT38NY1BZM6Qr1EeC05vM9IcVKO7GaEx0102TUzkyRE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -40,6 +35,7 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
aiohappyeyeballs
|
||||||
chacha20poly1305-reuseable
|
chacha20poly1305-reuseable
|
||||||
noiseprotocol
|
noiseprotocol
|
||||||
protobuf
|
protobuf
|
||||||
@ -48,19 +44,20 @@ buildPythonPackage rec {
|
|||||||
async-timeout
|
async-timeout
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
|
||||||
"aioesphomeapi"
|
|
||||||
];
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
mock
|
mock
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"aioesphomeapi"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
changelog = "https://github.com/esphome/aioesphomeapi/releases/tag/v${version}";
|
|
||||||
description = "Python Client for ESPHome native API";
|
description = "Python Client for ESPHome native API";
|
||||||
homepage = "https://github.com/esphome/aioesphomeapi";
|
homepage = "https://github.com/esphome/aioesphomeapi";
|
||||||
|
changelog = "https://github.com/esphome/aioesphomeapi/releases/tag/v${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab hexa ];
|
maintainers = with maintainers; [ fab hexa ];
|
||||||
};
|
};
|
||||||
|
54
pkgs/development/python-modules/aiohappyeyeballs/default.nix
Normal file
54
pkgs/development/python-modules/aiohappyeyeballs/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, aiocoap
|
, aiocoap
|
||||||
|
, aiohappyeyeballs
|
||||||
, async-interrupt
|
, async-interrupt
|
||||||
, bleak
|
, bleak
|
||||||
, bleak-retry-connector
|
, bleak-retry-connector
|
||||||
@ -19,16 +20,16 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aiohomekit";
|
pname = "aiohomekit";
|
||||||
version = "3.0.9";
|
version = "3.1.0";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.9";
|
disabled = pythonOlder "3.10";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Jc2k";
|
owner = "Jc2k";
|
||||||
repo = pname;
|
repo = "aiohomekit";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-YaLSpWSaiEP7X+IujrQgXgWl3aPc1WDMq2yaMUTu328=";
|
hash = "sha256-yaPliPKa/mS9amUkEx/iM398HGoiKrR6miCtK7fThNw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -37,6 +38,7 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aiocoap
|
aiocoap
|
||||||
|
aiohappyeyeballs
|
||||||
async-interrupt
|
async-interrupt
|
||||||
bleak
|
bleak
|
||||||
bleak-retry-connector
|
bleak-retry-connector
|
||||||
|
@ -218,6 +218,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
aiogram = callPackage ../development/python-modules/aiogram { };
|
aiogram = callPackage ../development/python-modules/aiogram { };
|
||||||
|
|
||||||
|
aiohappyeyeballs = callPackage ../development/python-modules/aiohappyeyeballs { };
|
||||||
|
|
||||||
aioharmony = callPackage ../development/python-modules/aioharmony { };
|
aioharmony = callPackage ../development/python-modules/aioharmony { };
|
||||||
|
|
||||||
aiohomekit = callPackage ../development/python-modules/aiohomekit { };
|
aiohomekit = callPackage ../development/python-modules/aiohomekit { };
|
||||||
|
Loading…
Reference in New Issue
Block a user