1{
2 beartype,
3 buildPythonPackage,
4 fetchFromGitHub,
5 lib,
6 poetry-core,
7 pydantic,
8 python,
9 rich,
10 tomli,
11}:
12buildPythonPackage rec {
13 pname = "corallium";
14 version = "2.1.1";
15 format = "pyproject";
16
17 src = fetchFromGitHub {
18 owner = "KyleKing";
19 repo = pname;
20 tag = version;
21 hash = "sha256-0P8qmX+1zigL4jaA4TTuqAzFkyhQUfdGmPLxkFnT0qE=";
22 };
23
24 build-system = [
25 poetry-core
26 ];
27
28 dependencies = [
29 beartype
30 pydantic
31 rich
32 ]
33 ++ lib.optionals (python.pythonOlder "3.11") [
34 tomli
35 ];
36
37 meta = with lib; {
38 description = "Shared functionality for calcipy-ecosystem";
39 homepage = "https://corallium.kyleking.me";
40 license = licenses.mit;
41 maintainers = with maintainers; [ yajo ];
42 };
43}