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 '';