From 878019765bb141b58ebc39612e897347523e2b2d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 5 Aug 2024 23:30:55 +0200 Subject: [PATCH] python312Packages.aioweenect: 1.1.1 -> 1.1.2 Diff: eifinger/aioweenect@refs/tags/v1.1.1...v1.1.2 Changelog: https://github.com/eifinger/aioweenect/releases/tag/v1.1.2 --- .../python-modules/aioweenect/default.nix | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/aioweenect/default.nix b/pkgs/development/python-modules/aioweenect/default.nix index 43083f319ba1..f49533da9de2 100644 --- a/pkgs/development/python-modules/aioweenect/default.nix +++ b/pkgs/development/python-modules/aioweenect/default.nix @@ -4,7 +4,8 @@ aresponses, buildPythonPackage, fetchFromGitHub, - poetry-core, + hatchling, + httpx, pytest-asyncio, pytestCheckHook, pythonOlder, @@ -12,26 +13,31 @@ buildPythonPackage rec { pname = "aioweenect"; - version = "1.1.1"; - format = "pyproject"; + version = "1.1.2"; + pyproject = true; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "eifinger"; - repo = pname; + repo = "aioweenect"; rev = "refs/tags/v${version}"; - hash = "sha256-9CYdOUPCt4TkepVuVJHMZngFHyCLFwVvik1xDnfneEc="; + hash = "sha256-qVhF+gy5qcH/okuncDuzbAUPonkmQo1/QwOjC70IV4w="; }; postPatch = '' substituteInPlace pyproject.toml \ - --replace "--cov --cov-report term-missing --cov-report xml --cov=aioweenect tests" "" + --replace-fail "--cov --cov-report term-missing --cov=src/aioweenect --asyncio-mode=auto" "" ''; - nativeBuildInputs = [ poetry-core ]; + pythonRelaxDeps = [ "aiohttp" ]; - propagatedBuildInputs = [ aiohttp ]; + build-system = [ hatchling ]; + + dependencies = [ + aiohttp + httpx + ]; nativeCheckInputs = [ aresponses @@ -44,6 +50,7 @@ buildPythonPackage rec { meta = with lib; { description = "Library for the weenect API"; homepage = "https://github.com/eifinger/aioweenect"; + changelog = "https://github.com/eifinger/aioweenect/releases/tag/v${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };