1{
2 aiohttp,
3 aioresponses,
4 buildPythonPackage,
5 fetchFromGitHub,
6 lib,
7 pytest-asyncio,
8 pytestCheckHook,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "watergate-local-api";
14 version = "2024.4.1";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "watergate-ai";
19 repo = "watergate-local-api-python";
20 tag = version;
21 hash = "sha256-zEbujtXTXjRRzpNdowh7xjBvCxwp7Z1QYRm6ZM8rFR8=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 aiohttp
28 ];
29
30 pythonImportsCheck = [ "watergate_local_api" ];
31
32 nativeCheckInputs = [
33 aioresponses
34 pytest-asyncio
35 pytestCheckHook
36 ];
37
38 meta = {
39 description = "Python package to interact with the Watergate Local API";
40 homepage = "https://github.com/watergate-ai/watergate-local-api-python";
41 license = lib.licenses.gpl3Only;
42 maintainers = with lib.maintainers; [ dotlambda ];
43 };
44}