Skip to content

Commit

Permalink
python312Packages.hikari: fix build (#355886)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodachi94 authored Nov 18, 2024
2 parents 2d158cd + f278e7f commit 6e1b17d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkgs/development/python-modules/hikari/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ buildPythonPackage rec {
'';
};


propagatedBuildInputs = [
aiohttp
attrs
Expand Down Expand Up @@ -64,13 +63,19 @@ 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 = {
description = "Discord API wrapper for Python written with asyncio";
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
];
};
}

0 comments on commit 6e1b17d

Please sign in to comment.