python313Packages.aiogithubapi: refactor
This commit is contained in:
committed by
Fabian Affolter
parent
65f159654d
commit
63d4351af1
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user