[Backport release-24.11] python312Packages.hikari: fix build (#357063)

This commit is contained in:
Tomodachi94 2024-11-18 11:37:30 -08:00 committed by GitHub
commit 8ebbdd9318
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,6 @@ buildPythonPackage rec {
'';
};
propagatedBuildInputs = [
aiohttp
attrs
@ -64,6 +63,9 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace hikari/_about.py \
--replace-fail "__git_sha1__: typing.Final[str] = \"HEAD\"" "__git_sha1__: typing.Final[str] = \"$(cat $src/COMMIT)\""
# XXX: Remove once pytest-asyncio is updated to 0.24+
substituteInPlace pyproject.toml \
--replace-fail "asyncio_default_fixture_loop_scope = \"func\"" ""
'';
meta = {
@ -71,6 +73,9 @@ buildPythonPackage rec {
homepage = "https://www.hikari-py.dev/";
changelog = "https://github.com/hikari-py/hikari/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tomodachi94 sigmanificient ];
maintainers = with lib.maintainers; [
tomodachi94
sigmanificient
];
};
}