blob: 368b683cd98f896cba6eae5be73a8621586af3ad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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";
};
}
|