From 63d4351af12f3f3c9d110a2439cd2d3b04bbe28f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Aug 2025 01:00:48 +0200 Subject: [PATCH] python313Packages.aiogithubapi: refactor --- .../python-modules/aiogithubapi/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/aiogithubapi/default.nix b/pkgs/development/python-modules/aiogithubapi/default.nix index 414f6b1ba250..1dbdff0f8c95 100644 --- a/pkgs/development/python-modules/aiogithubapi/default.nix +++ b/pkgs/development/python-modules/aiogithubapi/default.nix @@ -11,6 +11,7 @@ pytestCheckHook, pythonOlder, sigstore, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { @@ -18,7 +19,7 @@ buildPythonPackage rec { version = "25.5.0"; pyproject = true; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "ludeeus"; @@ -29,8 +30,6 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - pythonRelaxDeps = [ "async-timeout" ]; - postPatch = '' # Upstream is releasing with the help of a CI to PyPI, GitHub releases # are not in their focus @@ -38,6 +37,8 @@ buildPythonPackage rec { --replace-fail 'version = "0"' 'version = "${version}"' ''; + pythonRelaxDeps = [ "async-timeout" ]; + build-system = [ poetry-core ]; dependencies = [ @@ -53,13 +54,12 @@ buildPythonPackage rec { aresponses pytest-asyncio pytestCheckHook + writableTmpDirAsHomeHook ]; pytestFlags = [ "--asyncio-mode=auto" ]; preCheck = '' - export HOME=$(mktemp -d) - # Need sigstore is an optional dependencies and need <2 rm -rf tests/test_helper.py '';