Files
nixpkgs/pkgs/development/python-modules/hikari-crescent/default.nix
T
2024-06-05 17:33:44 +02:00

60 lines
1.2 KiB
Nix

{
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";
};
}