mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 04:45:39 +00:00
Merge pull request #309131 from NixOS/home-assistant
home-assistant: 2024.4.4 -> 2024.5.0
This commit is contained in:
commit
eff79fe6ca
@ -1,21 +1,21 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, freezegun
|
||||
, mashumaro
|
||||
, poetry-core
|
||||
, pyjwt
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, syrupy
|
||||
{
|
||||
lib,
|
||||
aiohttp,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
freezegun,
|
||||
mashumaro,
|
||||
poetry-core,
|
||||
pyjwt,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
syrupy,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aioautomower";
|
||||
version = "2024.4.0";
|
||||
version = "2024.4.4";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.11";
|
||||
@ -24,21 +24,19 @@ buildPythonPackage rec {
|
||||
owner = "Thomas55555";
|
||||
repo = "aioautomower";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-W6aZdvg+EZKv0pmIaPOBaJaWipq3AENTVAVon/lFuI4=";
|
||||
hash = "sha256-/mwKomgY+yifN27bpCK9FjhbZRdllr471Ku+Kn2rUPM=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Upstream doesn't set a version
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail 'version = "0.0.0"' 'version = "${version}"'
|
||||
--replace-fail 'version = "0.0.0"' 'version = "${version}"' \
|
||||
--replace-fail "--cov" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
setuptools
|
||||
];
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
aiohttp
|
||||
mashumaro
|
||||
pyjwt
|
||||
@ -51,13 +49,9 @@ buildPythonPackage rec {
|
||||
syrupy
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"aioautomower"
|
||||
];
|
||||
pythonImportsCheck = [ "aioautomower" ];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"--snapshot-update"
|
||||
];
|
||||
pytestFlagsArray = [ "--snapshot-update" ];
|
||||
|
||||
disabledTests = [
|
||||
# File is missing
|
||||
|
@ -1,30 +1,56 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPy27
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
|
||||
# dependencies
|
||||
, aiohttp
|
||||
, click
|
||||
, incremental
|
||||
|
||||
# tests
|
||||
, aioresponses
|
||||
, pytest-aiohttp
|
||||
, pytest-asyncio
|
||||
, pytest-socket
|
||||
, pytestCheckHook
|
||||
, syrupy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aioazuredevops";
|
||||
version = "1.4.3";
|
||||
format = "setuptools";
|
||||
version = "2.0.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = isPy27;
|
||||
disabled = pythonOlder "3.11";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-vNTvSQYjjptdPsHz0zM9paq3iodZrhcEralPm6YRZJE=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "timmo001";
|
||||
repo = "aioazuredevops";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-QEIVAcBoTvuOeLN2kfDa3uYfrUm5Qu1TLp9C0uU+mW4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
click
|
||||
build-system = [
|
||||
incremental
|
||||
setuptools
|
||||
];
|
||||
|
||||
# no tests implemented
|
||||
doCheck = false;
|
||||
dependencies = [
|
||||
aiohttp
|
||||
incremental
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
aioresponses
|
||||
pytest-aiohttp
|
||||
pytest-asyncio
|
||||
pytest-socket
|
||||
pytestCheckHook
|
||||
syrupy
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"aioazuredevops.builds"
|
||||
@ -33,6 +59,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/timmo001/aioazuredevops/releases/tag/${version}";
|
||||
description = "Get data from the Azure DevOps API";
|
||||
mainProgram = "aioazuredevops";
|
||||
homepage = "https://github.com/timmo001/aioazuredevops";
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aioesphomeapi";
|
||||
version = "23.2.0";
|
||||
version = "24.3.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@ -34,7 +34,7 @@ buildPythonPackage rec {
|
||||
owner = "esphome";
|
||||
repo = "aioesphomeapi";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-GFQ87Ic0xHXs8ZgmzH7kOFbDSNmtj0hx+YHKnrz/sG0=";
|
||||
hash = "sha256-wQR3dwN5O++TdtQh+Wcj7c7TNMaRj2lMlOuXOAPVU0Q=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
|
56
pkgs/development/python-modules/aiohttp-isal/default.nix
Normal file
56
pkgs/development/python-modules/aiohttp-isal/default.nix
Normal file
@ -0,0 +1,56 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# build-system
|
||||
, poetry-core
|
||||
|
||||
# dependencies
|
||||
, aiohttp
|
||||
, isal
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp-isal";
|
||||
version = "0.3.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bdraco";
|
||||
repo = "aiohttp-isal";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-rSXV5Z5JdznQGtRI83UIbaSfbIYkUHphJTVK/LM2V4U=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
isal
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
sed -i '/addopts/d' pyproject.toml
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"aiohttp_isal"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/bdraco/aiohttp-isal/blob/${src.rev}/CHANGELOG.md";
|
||||
description = "Isal support for aiohttp";
|
||||
homepage = "https://github.com/bdraco/aiohttp-isal";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
59
pkgs/development/python-modules/aiohttp-session/default.nix
Normal file
59
pkgs/development/python-modules/aiohttp-session/default.nix
Normal file
@ -0,0 +1,59 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
|
||||
# dependencies
|
||||
, aiohttp
|
||||
|
||||
# optional-dependencies
|
||||
, aiomcache
|
||||
, cryptography
|
||||
, pynacl
|
||||
, redis
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp-session";
|
||||
version = "2.12.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aio-libs";
|
||||
repo = "aiohttp-session";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-7MNah4OIQnoxLoZkLOdeu5uCwSyPMhc6Wsht8dFconc=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
aioredis = [ redis ];
|
||||
aiomcache = [ aiomcache ];
|
||||
pycrypto = [ cryptography ];
|
||||
secure = [ cryptography ];
|
||||
pynacl = [ pynacl ];
|
||||
};
|
||||
|
||||
doCheck = false; # runs redis in docker
|
||||
|
||||
pythonImportsCheck = [
|
||||
"aiohttp_session"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Web sessions for aiohttp.web";
|
||||
homepage = "https://github.com/aio-libs/aiohttp-session";
|
||||
changelog = "https://github.com/aio-libs/aiohttp-session/blob/${src.rev}/CHANGES.txt";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
49
pkgs/development/python-modules/aiomcache/default.nix
Normal file
49
pkgs/development/python-modules/aiomcache/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
|
||||
# dependencies
|
||||
, python-memcached
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiomcache";
|
||||
version = "0.8.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aio-libs";
|
||||
repo = "aiomcache";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-oRMN1seEjFSsq4wjkIXHM7Osq8y/5WFExGCEr6eM9vc=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
python-memcached
|
||||
] ++ lib.optionals (pythonOlder "3.11") [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
doCheck = false; # executes memcached in docker
|
||||
|
||||
pythonImportsCheck = [
|
||||
"aiomcache"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/aio-libs/aiomcache/blob/${src.rev}/CHANGES.rst";
|
||||
description = "Minimal asyncio memcached client";
|
||||
homepage = "https://github.com/aio-libs/aiomcache/";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
@ -1,34 +1,33 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, bluetooth-data-tools
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, habluetooth
|
||||
, orjson
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, yarl
|
||||
{
|
||||
lib,
|
||||
aiohttp,
|
||||
bluetooth-data-tools,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
habluetooth,
|
||||
orjson,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
yarl,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aioshelly";
|
||||
version = "8.2.0";
|
||||
version = "9.0.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "home-assistant-libs";
|
||||
repo = pname;
|
||||
repo = "aioshelly";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-ZJ6lb3pd8DhNagaVq1uFwadtviuHCg44YZkh29ipu5U=";
|
||||
hash = "sha256-yVjQlP4vIs3Nk94ZcafpLzxVMIJfLsPGee5G5IdnCRs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
aiohttp
|
||||
bluetooth-data-tools
|
||||
habluetooth
|
||||
@ -39,9 +38,7 @@ buildPythonPackage rec {
|
||||
# Project has no test
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"aioshelly"
|
||||
];
|
||||
pythonImportsCheck = [ "aioshelly" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library to control Shelly";
|
||||
|
@ -4,7 +4,6 @@
|
||||
, click
|
||||
, click-log
|
||||
, fetchFromGitHub
|
||||
, fetchpatch2
|
||||
, pure-pcapy3
|
||||
, pyserial-asyncio
|
||||
, pytest-asyncio
|
||||
@ -18,7 +17,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bellows";
|
||||
version = "0.38.1";
|
||||
version = "0.38.4";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@ -27,16 +26,9 @@ buildPythonPackage rec {
|
||||
owner = "zigpy";
|
||||
repo = "bellows";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-oxPzjDb+FdHeHsgeGKH3SVvKb0vCB9dIhT7lGzhDcBw=";
|
||||
hash = "sha256-IyJQgKTRrff/LqY14IaATrJTkmVDEv0JFHAxCydNk7Y=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch2 {
|
||||
url = "https://github.com/zigpy/bellows/commit/7833647083f27f55b7ad345f4aaa7dffaa369abc.patch";
|
||||
hash = "sha256-v+BOPqikWoyNtZ1qRWe3RwraG6nQnfZqoV6yj9PpGX8=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail '"setuptools-git-versioning<2"' "" \
|
||||
|
@ -18,26 +18,26 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bimmer-connected";
|
||||
version = "0.14.6";
|
||||
version = "0.15.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bimmerconnected";
|
||||
repo = "bimmer_connected";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-/FL9czp5x/BcKSXXzT19kgGiPFd61BpU7HLtgyyHlIs=";
|
||||
hash = "sha256-UCzPD+3v74eB32q0/blsyHAsN0yNskGky5nrBKzFFaE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
pbr
|
||||
setuptools
|
||||
];
|
||||
|
||||
PBR_VERSION = version;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
httpx
|
||||
pycryptodome
|
||||
pyjwt
|
||||
|
@ -13,12 +13,13 @@
|
||||
, pythonOlder
|
||||
, sphinx-rtd-theme
|
||||
, sphinxHook
|
||||
, uart-devices
|
||||
, usb-devices
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bluetooth-adapters";
|
||||
version = "0.18.0";
|
||||
version = "0.19.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@ -27,7 +28,7 @@ buildPythonPackage rec {
|
||||
owner = "Bluetooth-Devices";
|
||||
repo = "bluetooth-adapters";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-KPmCOPCK7muT0qptJMKQwWU/6tvepkdHwlNYcrvpRLg=";
|
||||
hash = "sha256-r+Ll9ODFal+I2MwrwHakPFWD3GiE/n0f/dYs69jmmpU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@ -40,20 +41,21 @@ buildPythonPackage rec {
|
||||
"doc"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
myst-parser
|
||||
poetry-core
|
||||
sphinx-rtd-theme
|
||||
sphinxHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
aiohttp
|
||||
aiooui
|
||||
async-timeout
|
||||
bleak
|
||||
dbus-fast
|
||||
mac-vendor-lookup
|
||||
uart-devices
|
||||
usb-devices
|
||||
];
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bluetooth-auto-recovery";
|
||||
version = "1.4.1";
|
||||
version = "1.4.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||
owner = "Bluetooth-Devices";
|
||||
repo = "bluetooth-auto-recovery";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-4LgEb90QsjTMsVat6fe9B3b6f93bHTgJgQNsRbyti2M=";
|
||||
hash = "sha256-JaFazXjbHohj4+rPkQA/SaBP0irHrre3vaCqz7T2bwE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "deebot-client";
|
||||
version = "7.0.0";
|
||||
version = "7.1.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.12";
|
||||
@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||
owner = "DeebotUniverse";
|
||||
repo = "client.py";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-RlLWC1TLjrwQ7t727WpjePJA1zGj4460Ioj6efm/jSw=";
|
||||
hash = "sha256-x4P0hFsyo/QLQA+MOecbiKfZ/5TL6WKWXftsLz9XBA4=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fyta-cli";
|
||||
version = "0.4.0";
|
||||
version = "0.4.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@ -18,7 +18,7 @@ buildPythonPackage rec {
|
||||
owner = "dontinelli";
|
||||
repo = "fyta_cli";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-ThxC+s0vkvFQw9FKMWO+cHJB1ci+USdxQa4PRqHrKLM=";
|
||||
hash = "sha256-eWuuHIq79n1oFsvBfVySfGCtHz+MlFRR3j8uqtVR+V0=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ lib
|
||||
, async-interrupt
|
||||
, bleak
|
||||
, bleak-retry-connector
|
||||
, bluetooth-adapters
|
||||
@ -16,7 +17,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "habluetooth";
|
||||
version = "2.4.2";
|
||||
version = "2.8.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
@ -25,22 +26,23 @@ buildPythonPackage rec {
|
||||
owner = "Bluetooth-Devices";
|
||||
repo = "habluetooth";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-IoVXmq9ShwLpGtoxVOtoirSirJJ1DqBI/mP7PmK7OUs=";
|
||||
hash = "sha256-Qmq81iZpeLNrSIvxgkHl6ZYntlRwQPfPWRY2ZToQXCs=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov=habluetooth --cov-report=term-missing:skip-covered" ""
|
||||
--replace-fail " --cov=habluetooth --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
cython
|
||||
poetry-core
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
async-interrupt
|
||||
bleak
|
||||
bleak-retry-connector
|
||||
bluetooth-adapters
|
||||
|
67
pkgs/development/python-modules/isal/default.nix
Normal file
67
pkgs/development/python-modules/isal/default.nix
Normal file
@ -0,0 +1,67 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
|
||||
# native dependencies
|
||||
, isa-l
|
||||
|
||||
# tests
|
||||
, pytest-timeout
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "isal";
|
||||
version = "1.6.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pycompression";
|
||||
repo = "python-isal";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-EhdKT2ftyU2zevFg9Yi3q2FVx0FmKwJMzszsK1NS3Qg=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
isa-l
|
||||
];
|
||||
|
||||
env.PYTHON_ISAL_LINK_DYNAMIC = true;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-timeout
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"tests"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# calls `python -m isal` and fails on import
|
||||
"test_compress_fast_best_are_exclusive"
|
||||
"test_compress_infile_outfile"
|
||||
"test_compress_infile_outfile_default"
|
||||
"test_decompress_cannot_have_flags_compression"
|
||||
"test_decompress_infile_outfile_error"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"isal"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/pycompression/python-isal/blob/${src.rev}/CHANGELOG.rst";
|
||||
description = "Faster zlib and gzip compatible compression and decompression by providing python bindings for the isa-l library";
|
||||
homepage = "https://github.com/pycompression/python-isal";
|
||||
license = licenses.psfl;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
@ -55,7 +55,7 @@ in
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-matter-server";
|
||||
version = "5.9.0";
|
||||
version = "5.10.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
@ -64,7 +64,7 @@ buildPythonPackage rec {
|
||||
owner = "home-assistant-libs";
|
||||
repo = "python-matter-server";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-O3AJ7vBjuwRGa4AMwWIdxn5m2F45rLCjCHeff18b/5E=";
|
||||
hash = "sha256-rfpGclSgCBTxlTgVqgNz3ixoldB9M+6mLmogkNDDdWs=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
@ -5,13 +5,14 @@
|
||||
, aiohttp
|
||||
, asn1
|
||||
, python-dateutil
|
||||
, setuptools
|
||||
, tenacity
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "smart-meter-texas";
|
||||
version = "0.5.3";
|
||||
format = "setuptools";
|
||||
version = "0.5.5";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
@ -19,15 +20,19 @@ buildPythonPackage rec {
|
||||
owner = "grahamwetzler";
|
||||
repo = "smart-meter-texas";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-8htd5fLrtkaVlSEm+RB7tWA5YZkcAOjAXVNzZiMwP7k=";
|
||||
hash = "sha256-dHWcYrBtmKdEIU45rMy4KvoPX88hnRpd4KBlbJaNvgI=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pytest-runner" ""
|
||||
--replace-fail "pytest-runner" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
asn1
|
||||
python-dateutil
|
||||
|
@ -13,21 +13,21 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "solax";
|
||||
version = "3.0.5";
|
||||
version = "3.1.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-PQ7qJCNfXGNF2RK6pHwf0U1DXgv2j2uQ64Nv/qh8f8s=";
|
||||
hash = "sha256-vc1NAbcQQxjpXnjZvTsnebzMc/LoMwBveDHBxBbhnEo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
aiohttp
|
||||
async-timeout
|
||||
voluptuous
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zha-quirks";
|
||||
version = "0.0.114";
|
||||
version = "0.0.115";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.12";
|
||||
@ -21,7 +21,7 @@ buildPythonPackage rec {
|
||||
owner = "zigpy";
|
||||
repo = "zha-device-handlers";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-FipD4VCz2/FYlf17+q7LTej9ZtT72/R4ELkAQtw7RvE=";
|
||||
hash = "sha256-qqPBCLYS6yLpK8PzC3atQ73yi15XE3ywIUBVO7JPYVE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
@ -45,6 +45,7 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"bellows"
|
||||
"universal-silabs-flasher"
|
||||
"zha-quirks"
|
||||
];
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zigpy";
|
||||
version = "0.63.5";
|
||||
version = "0.64.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@ -33,7 +33,7 @@ buildPythonPackage rec {
|
||||
owner = "zigpy";
|
||||
repo = "zigpy";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-iZxHXxheyoA5vo0Pxojs7QE8rSyTpsYpJ6/OzDSZJ20=";
|
||||
hash = "sha256-4p/CUAZQLiADWzjXMOeYUX0OJgZczHrI2/sVRuXiFSI=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@ -72,10 +72,8 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# # Our two manual scans succeeded and the periodic one was attempted
|
||||
# assert len(mock_scan.mock_calls) == 3
|
||||
# AssertionError: assert 4 == 3
|
||||
"test_periodic_scan_priority"
|
||||
# assert quirked.quirk_metadata.quirk_location.endswith("zigpy/tests/test_quirks_v2.py]-line:104") is False
|
||||
"test_quirks_v2"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -39,15 +39,6 @@ let
|
||||
};
|
||||
});
|
||||
|
||||
aioautomower = super.aioautomower.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "2024.3.4";
|
||||
src = fetchFromGitHub {
|
||||
inherit (oldAttrs.src) owner repo;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-dk8HfIiQOKq7Ky+vYa3wKmTS78gTw6J0yyQT2Folpp0=";
|
||||
};
|
||||
});
|
||||
|
||||
aioelectricitymaps = super.aioelectricitymaps.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "0.4.0";
|
||||
src = fetchFromGitHub {
|
||||
@ -61,19 +52,14 @@ let
|
||||
];
|
||||
});
|
||||
|
||||
aiogithubapi = super.aiogithubapi.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "22.10.1";
|
||||
aiolyric = super.aiolyric.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "1.1.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "ludeeus";
|
||||
repo = "aiogithubapi";
|
||||
owner = "timmo001";
|
||||
repo = "aiolyric";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-ceBuqaMqqL6qwN52765MG4sLt+08hx2G9rUVNC7x6ik=";
|
||||
hash = "sha256-FZhLjVrLzLv6CZz/ROlvbtBK9XnpO8pG48aSIoBxhCo=";
|
||||
};
|
||||
propagatedBuildInputs = with self; [
|
||||
aiohttp
|
||||
async-timeout
|
||||
backoff
|
||||
];
|
||||
});
|
||||
|
||||
aiopurpleair = super.aiopurpleair.overridePythonAttrs (oldAttrs: rec {
|
||||
@ -293,17 +279,6 @@ let
|
||||
doCheck = false; # no tests
|
||||
});
|
||||
|
||||
# Pinned due to API changes in 1.3.0
|
||||
ovoenergy = super.ovoenergy.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "1.2.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "timmo001";
|
||||
repo = "ovoenergy";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-OSK74uvpHuEtWgbLVFrz1NO7lvtHbt690smGQ+GlsOI=";
|
||||
};
|
||||
});
|
||||
|
||||
# Pinned due to API changes in 0.1.0
|
||||
poolsense = super.poolsense.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "0.0.8";
|
||||
@ -314,16 +289,6 @@ let
|
||||
};
|
||||
});
|
||||
|
||||
py-synologydsm-api = super.py-synologydsm-api.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "2.1.4";
|
||||
src = fetchFromGitHub {
|
||||
owner = "mib1185";
|
||||
repo = "py-synologydsm-api";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-37JzdhMny6YDTBO9NRzfrZJAVAOPnpcr95fOKxisbTg=";
|
||||
};
|
||||
});
|
||||
|
||||
pyasn1 = super.pyasn1.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "0.4.8";
|
||||
src = fetchPypi {
|
||||
@ -366,20 +331,6 @@ let
|
||||
};
|
||||
});
|
||||
|
||||
python-roborock = super.python-roborock.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "0.40.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "humbertogontijo";
|
||||
repo = "python-roborock";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-H4xwgulNLs3R1Q5GhvQffpAZ1CWXZUJAja8BskW+YJk=";
|
||||
};
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "poetry-core==" "poetry-core>="
|
||||
'';
|
||||
});
|
||||
|
||||
pytibber = super.pytibber.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "0.28.2";
|
||||
src = fetchFromGitHub {
|
||||
@ -525,7 +476,7 @@ let
|
||||
extraBuildInputs = extraPackages python.pkgs;
|
||||
|
||||
# Don't forget to run update-component-packages.py after updating
|
||||
hassVersion = "2024.4.4";
|
||||
hassVersion = "2024.5.0";
|
||||
|
||||
in python.pkgs.buildPythonApplication rec {
|
||||
pname = "homeassistant";
|
||||
@ -543,16 +494,16 @@ in python.pkgs.buildPythonApplication rec {
|
||||
owner = "home-assistant";
|
||||
repo = "core";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-bZcrFtaO0S22M6Wt2otK8rCg+NhpXr+/yRFxi02QJJI=";
|
||||
hash = "sha256-YtlelAfFC3fnw78lZIf5FtQifvtwb2ZjCrZgM2G7S5U=";
|
||||
};
|
||||
|
||||
# Secondary source is pypi sdist for translations
|
||||
sdist = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-NyIBFpDstX1MEoLS9p7GXl/+V6xB2hklNf2LmNLUMQk=";
|
||||
hash = "sha256-9BgfQCP+t4zvC+ZVI0IAlm2qFArqRjTb8974sY/SHUg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with python.pkgs; [
|
||||
build-system = with python.pkgs; [
|
||||
pythonRelaxDepsHook
|
||||
setuptools
|
||||
];
|
||||
@ -592,16 +543,20 @@ in python.pkgs.buildPythonApplication rec {
|
||||
postPatch = ''
|
||||
substituteInPlace tests/test_config.py --replace-fail '"/usr"' '"/build/media"'
|
||||
|
||||
substituteInPlace pyproject.toml --replace-fail "wheel~=0.43.0" wheel
|
||||
|
||||
sed -i 's/setuptools[~=]/setuptools>/' pyproject.toml
|
||||
sed -i 's/wheel[~=]/wheel>/' pyproject.toml
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with python.pkgs; [
|
||||
dependencies = with python.pkgs; [
|
||||
# Only packages required in pyproject.toml
|
||||
aiodns
|
||||
aiohttp
|
||||
aiohttp-cors
|
||||
aiohttp-fast-url-dispatcher
|
||||
aiohttp-zlib-ng
|
||||
aiohttp-isal
|
||||
aiohttp-session
|
||||
astral
|
||||
async-interrupt
|
||||
atomicwrites-homeassistant
|
||||
@ -613,8 +568,8 @@ in python.pkgs.buildPythonApplication rec {
|
||||
cryptography
|
||||
fnv-hash-fast
|
||||
hass-nabucasa
|
||||
httpx
|
||||
home-assistant-bluetooth
|
||||
httpx
|
||||
ifaddr
|
||||
jinja2
|
||||
lru-dict
|
||||
@ -623,8 +578,8 @@ in python.pkgs.buildPythonApplication rec {
|
||||
pillow
|
||||
pip
|
||||
psutil-home-assistant
|
||||
pyopenssl
|
||||
pyjwt
|
||||
pyopenssl
|
||||
python-slugify
|
||||
pyyaml
|
||||
requests
|
||||
@ -666,6 +621,8 @@ in python.pkgs.buildPythonApplication rec {
|
||||
tomli
|
||||
# Sneakily imported in tests/conftest.py
|
||||
paho-mqtt
|
||||
# Used in tests/non_packaged_scripts/test_alexa_locales.py
|
||||
beautifulsoup4
|
||||
] ++ lib.concatMap (component: getPackages component python.pkgs) [
|
||||
# some components are needed even if tests in tests/components are disabled
|
||||
"default_config"
|
||||
@ -688,6 +645,8 @@ in python.pkgs.buildPythonApplication rec {
|
||||
"--deselect=tests/helpers/test_script.py::test_multiple_runs_repeat_choose"
|
||||
# SystemError: PyThreadState_SetAsyncExc failed
|
||||
"--deselect=tests/helpers/test_template.py::test_template_timeout"
|
||||
# AssertionError: assert 6 == 5
|
||||
"--deselect=tests/helpers/test_translation.py::test_caching"
|
||||
# tests are located in tests/
|
||||
"tests"
|
||||
];
|
||||
|
@ -4,7 +4,7 @@ buildPythonPackage rec {
|
||||
# the frontend version corresponding to a specific home-assistant version can be found here
|
||||
# https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json
|
||||
pname = "home-assistant-frontend";
|
||||
version = "20240404.2";
|
||||
version = "20240501.0";
|
||||
format = "wheel";
|
||||
|
||||
src = fetchPypi {
|
||||
@ -12,7 +12,7 @@ buildPythonPackage rec {
|
||||
pname = "home_assistant_frontend";
|
||||
dist = "py3";
|
||||
python = "py3";
|
||||
hash = "sha256-xCpQHzfXXt9aOWWVGYtt9NYws//ZPjI/owXBQafb31k=";
|
||||
hash = "sha256-W3EiDkm/Se63/Ph4HUSRj2pY+y/pyCqecs4azYcxsaw=";
|
||||
};
|
||||
|
||||
# there is nothing to strip in this package
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "home-assistant-intents";
|
||||
version = "2024.4.3";
|
||||
version = "2024.4.24";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@ -29,8 +29,9 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "home-assistant";
|
||||
repo = "intents-package";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-hcstD1qkngZAl/jKLez+4qDs/ZIandkVkY2jrvZqph8=";
|
||||
# https://github.com/home-assistant/intents-package/issues/3
|
||||
rev = "a68176a189c3def87cb11ad39baacea2440ce668";
|
||||
hash = "sha256-SUIJWoA0ltg+bjYn4J5kvAk4Eh23uxEcdxonkTSV0m0=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "homeassistant-stubs";
|
||||
version = "2024.4.4";
|
||||
version = "2024.5.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = python.version != home-assistant.python.version;
|
||||
@ -17,7 +17,7 @@ buildPythonPackage rec {
|
||||
owner = "KapJI";
|
||||
repo = "homeassistant-stubs";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-BPmHorcyO6a7Ag7FQogkZYh2x3GoMRKiFh+9aSkjE7M=";
|
||||
hash = "sha256-QQ9FDxYJokISYWOOm7uAdz7o0TYLJJQn0YZm5tIZRhQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -249,6 +249,8 @@ self: super: with self; {
|
||||
|
||||
aiohttp-fast-url-dispatcher = callPackage ../development/python-modules/aiohttp-fast-url-dispatcher { };
|
||||
|
||||
aiohttp-isal = callPackage ../development/python-modules/aiohttp-isal { };
|
||||
|
||||
aiohttp-jinja2 = callPackage ../development/python-modules/aiohttp-jinja2 { };
|
||||
|
||||
aiohttp-oauthlib = callPackage ../development/python-modules/aiohttp-oauthlib { };
|
||||
@ -259,6 +261,8 @@ self: super: with self; {
|
||||
|
||||
aiohttp-retry = callPackage ../development/python-modules/aiohttp-retry { };
|
||||
|
||||
aiohttp-session = callPackage ../development/python-modules/aiohttp-session { };
|
||||
|
||||
aiohttp-socks = callPackage ../development/python-modules/aiohttp-socks { };
|
||||
|
||||
aiohttp-swagger = callPackage ../development/python-modules/aiohttp-swagger { };
|
||||
@ -307,6 +311,8 @@ self: super: with self; {
|
||||
|
||||
aiolyric = callPackage ../development/python-modules/aiolyric { };
|
||||
|
||||
aiomcache = callPackage ../development/python-modules/aiomcache { };
|
||||
|
||||
aiomisc = callPackage ../development/python-modules/aiomisc { };
|
||||
|
||||
aiomisc-pytest = callPackage ../development/python-modules/aiomisc-pytest { };
|
||||
@ -5897,6 +5903,8 @@ self: super: with self; {
|
||||
|
||||
irctokens = callPackage ../development/python-modules/irctokens { };
|
||||
|
||||
isal = callPackage ../development/python-modules/isal { };
|
||||
|
||||
isbnlib = callPackage ../development/python-modules/isbnlib { };
|
||||
|
||||
islpy = callPackage ../development/python-modules/islpy { };
|
||||
|
Loading…
Reference in New Issue
Block a user