Robert Schütz 2024-04-03 11:25:29 -07:00
parent 33664e1480
commit e0e03c7b50

View File

@ -13,37 +13,35 @@
, voluptuous , voluptuous
, websocket-client , websocket-client
, xmltodict , xmltodict
, wheel
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "hahomematic"; pname = "hahomematic";
version = "2024.3.1"; version = "2024.4.6";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.11"; disabled = pythonOlder "3.12";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "danielperna84"; owner = "danielperna84";
repo = "hahomematic"; repo = "hahomematic";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-/ulqUyplNu8YTHJKcfNPYzyzPvGkLFtoJDu5SqvfQrs="; hash = "sha256-w+sSaadbbfc1cNCTx5YYIm8eAKRQxyqZZKK2QPFZv7Y=";
}; };
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace-fail "setuptools~=69.1.0" "setuptools" \ --replace-fail "setuptools~=69.2.0" "setuptools" \
--replace-fail "wheel~=0.42.0" "wheel" --replace-fail "wheel~=0.43.0" "wheel"
''; '';
nativeBuildInputs = [ build-system = [
setuptools setuptools
wheel
]; ];
propagatedBuildInputs = [ dependencies = [
aiohttp aiohttp
orjson orjson
python-slugify python-slugify
@ -64,8 +62,8 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Python module to interact with HomeMatic devices"; description = "Python module to interact with HomeMatic devices";
homepage = "https://github.com/danielperna84/hahomematic"; homepage = "https://github.com/danielperna84/hahomematic";
changelog = "https://github.com/danielperna84/hahomematic/releases/tag/${version}"; changelog = "https://github.com/danielperna84/hahomematic/blob/${src.rev}/changelog.md";
license = with licenses; [ mit ]; license = licenses.mit;
maintainers = with maintainers; [ dotlambda fab ]; maintainers = with maintainers; [ dotlambda fab ];
}; };
} }