1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8 typing-extensions,
9}:
10
11buildPythonPackage rec {
12 pname = "sensai-utils";
13 version = "1.5.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.11";
17
18 src = fetchFromGitHub {
19 owner = "opcode81";
20 repo = "sensAI-utils";
21 tag = "v${version}";
22 hash = "sha256-bAbgamJjB+NpPnZHqYOrOhatGGgjzy558BrF3GwHOHE=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ typing-extensions ];
28
29 pythonImportsCheck = [ "sensai.util" ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 meta = with lib; {
34 description = "Utilities from sensAI, the Python library for sensible AI";
35 homepage = "https://github.com/opcode81/sensAI-utils";
36 changelog = "https://github.com/opcode81/sensAI-utils/releases/tag/${src.tag}";
37 license = licenses.mit;
38 maintainers = with maintainers; [ derdennisop ];
39 };
40}