Skip to content

Commit 6e1b17d

Browse files
authored
python312Packages.hikari: fix build (NixOS#355886)
2 parents 2d158cd + f278e7f commit 6e1b17d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pkgs/development/python-modules/hikari/default.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ buildPythonPackage rec {
3535
'';
3636
};
3737

38-
3938
propagatedBuildInputs = [
4039
aiohttp
4140
attrs
@@ -64,13 +63,19 @@ buildPythonPackage rec {
6463
postPatch = ''
6564
substituteInPlace hikari/_about.py \
6665
--replace-fail "__git_sha1__: typing.Final[str] = \"HEAD\"" "__git_sha1__: typing.Final[str] = \"$(cat $src/COMMIT)\""
66+
# XXX: Remove once pytest-asyncio is updated to 0.24+
67+
substituteInPlace pyproject.toml \
68+
--replace-fail "asyncio_default_fixture_loop_scope = \"func\"" ""
6769
'';
6870

6971
meta = {
7072
description = "Discord API wrapper for Python written with asyncio";
7173
homepage = "https://www.hikari-py.dev/";
7274
changelog = "https://github.com/hikari-py/hikari/releases/tag/${version}";
7375
license = lib.licenses.mit;
74-
maintainers = with lib.maintainers; [ tomodachi94 sigmanificient ];
76+
maintainers = with lib.maintainers; [
77+
tomodachi94
78+
sigmanificient
79+
];
7580
};
7681
}

0 commit comments

Comments
 (0)