From 73f6ca8b1ca82351ca6ed4a85426dc830a0e8a33 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 5 Feb 2025 09:15:19 +0100 Subject: [PATCH] python313Packages.nexia: 2.0.8 -> 2.0.9 Diff: https://github.com/bdraco/nexia/compare/refs/tags/2.0.8...2.0.9 Changelog: https://github.com/bdraco/nexia/releases/tag/2.0.9 --- .../python-modules/nexia/default.nix | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/nexia/default.nix b/pkgs/development/python-modules/nexia/default.nix index 5af0cf1351d8..8d89ee9d54a6 100644 --- a/pkgs/development/python-modules/nexia/default.nix +++ b/pkgs/development/python-modules/nexia/default.nix @@ -7,14 +7,13 @@ pytest-asyncio, pytestCheckHook, pythonOlder, - requests, - requests-mock, + aiohttp, setuptools, }: buildPythonPackage rec { pname = "nexia"; - version = "2.0.8"; + version = "2.0.9"; pyproject = true; disabled = pythonOlder "3.9"; @@ -23,24 +22,23 @@ buildPythonPackage rec { owner = "bdraco"; repo = "nexia"; tag = version; - hash = "sha256-dWFARVmGGQxyRhaOrDoAjwXTQNKBFHY2/swFVdEOsmo="; + hash = "sha256-HbsjMugPFptRPCwvXszD7Zfyl0P/VfQRbVDSMC+4mcg="; }; postPatch = '' - substituteInPlace setup.py \ - --replace '"pytest-runner",' "" + substituteInPlace pyproject.toml \ + --replace '"setuptools>=75.8.0"' "" ''; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ orjson - requests + aiohttp ]; nativeCheckInputs = [ aioresponses - requests-mock pytest-asyncio pytestCheckHook ]; @@ -51,7 +49,7 @@ buildPythonPackage rec { description = "Python module for Nexia thermostats"; homepage = "https://github.com/bdraco/nexia"; changelog = "https://github.com/bdraco/nexia/releases/tag/${version}"; - license = with licenses; [ asl20 ]; + license = licenses.asl20; maintainers = with maintainers; [ fab ]; }; }