diff --git a/pkgs/development/python-modules/hikari-crescent/default.nix b/pkgs/development/python-modules/hikari-crescent/default.nix new file mode 100644 index 000000000000..368b683cd98f --- /dev/null +++ b/pkgs/development/python-modules/hikari-crescent/default.nix @@ -0,0 +1,59 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + hikari, + sigparse, + pytestCheckHook, + python-dotenv, + pytest-asyncio, + croniter, + pynacl +}: + +buildPythonPackage rec { + pname = "hikari-crescent"; + version = "0.6.6"; + pyproject = true; + + src = fetchFromGitHub { + owner = "hikari-crescent"; + repo = "hikari-crescent"; + rev = "refs/tags/v${version}"; + hash = "sha256-PZAmz7Wofg6jnF25p/8leJQ9PeZaE3q5q2GUJG7NEB0="; + }; + + build-system = [ poetry-core ]; + + dependencies = [ + hikari + sigparse + ]; + + postPatch = '' + # pythonRelaxDepsHook did not work + substituteInPlace pyproject.toml \ + --replace-fail 'hikari = "==' 'hikari = ">=' + ''; + + pythonImportsCheck = [ "crescent" ]; + + nativeCheckInputs = [ + pytestCheckHook + python-dotenv + pytest-asyncio + croniter + pynacl + ]; + + disabledTests = [ "test_handle_resp" ]; + + meta = with lib; { + description = "A command handler for Hikari that keeps your project neat and tidy"; + license = licenses.mit; + homepage = "https://github.com/hikari-crescent/hikari-crescent"; + maintainers = with maintainers; [ sigmanificient ]; + mainProgram = "hikari-crescent"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c4a487233c6c..9b812147dc5e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5390,6 +5390,8 @@ self: super: with self; { hikari = callPackage ../development/python-modules/hikari { }; + hikari-crescent = callPackage ../development/python-modules/hikari-crescent { }; + hikari-lightbulb = callPackage ../development/python-modules/hikari-lightbulb { }; hikvision = callPackage ../development/python-modules/hikvision { };