mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-06 04:39:57 +00:00
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
hikari,
|
|
sigparse,
|
|
pyprojectVersionPatchHook,
|
|
pytestCheckHook,
|
|
python-dotenv,
|
|
pytest-asyncio,
|
|
croniter,
|
|
pynacl,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "hikari-crescent";
|
|
version = "1.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hikari-crescent";
|
|
repo = "hikari-crescent";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-86NCAlN5/JGrxPVIMs6ARr6H4G3shPcgxASwukptyJo=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
hikari
|
|
sigparse
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
# .dist-info/METADATA specifies version '0'
|
|
pyprojectVersionPatchHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "crescent" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
python-dotenv
|
|
pytest-asyncio
|
|
croniter
|
|
pynacl
|
|
];
|
|
|
|
disabledTests = [ "test_handle_resp" ];
|
|
|
|
disabledTestPaths = [ "tests/test_bot/test_bot.py" ];
|
|
|
|
meta = {
|
|
description = "Command handler for Hikari that keeps your project neat and tidy";
|
|
license = lib.licenses.mpl20;
|
|
homepage = "https://github.com/hikari-crescent/hikari-crescent";
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
mainProgram = "hikari-crescent";
|
|
};
|
|
})
|