1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 setuptools,
7 # Python deps
8 cachetools,
9 cardano-tools,
10 coloredlogs,
11 orjson,
12 pydantic,
13 websockets,
14}:
15
16buildPythonPackage rec {
17 pname = "ogmios";
18 version = "1.4.2";
19 pyproject = true;
20
21 src = fetchPypi {
22 pname = "ogmios";
23 inherit version;
24 hash = "sha256-L+BBuWhcQhnE9f+b860401WKTUcFxf7Ehji1MHCNqjo=";
25 };
26
27 build-system = [
28 hatchling
29 setuptools
30 ];
31
32 dependencies = [
33 cachetools
34 cardano-tools
35 coloredlogs
36 orjson
37 pydantic
38 websockets
39 ];
40
41 pythonImportsCheck = [ "ogmios" ];
42
43 meta = with lib; {
44 description = "Python client for Ogmios";
45 homepage = "https://gitlab.com/viperscience/ogmios-python";
46 license = licenses.gpl3Plus;
47 maintainers = with maintainers; [ aciceri ];
48 };
49}