1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 setuptools,
7 aiohttp,
8 incremental,
9 packaging,
10 systembridgemodels,
11 pytest-aiohttp,
12 pytest-socket,
13 pytestCheckHook,
14 syrupy,
15}:
16
17buildPythonPackage rec {
18 pname = "systembridgeconnector";
19 version = "5.1.0";
20 pyproject = true;
21
22 disabled = pythonOlder "3.11";
23
24 src = fetchFromGitHub {
25 owner = "timmo001";
26 repo = "system-bridge-connector";
27 tag = version;
28 hash = "sha256-KfFlYBITHxzk87b2W0KO9djyX0yBc7ioDKEUgHHe3eM=";
29 };
30
31 build-system = [
32 incremental
33 setuptools
34 ];
35
36 dependencies = [
37 aiohttp
38 packaging
39 systembridgemodels
40 ];
41
42 pythonImportsCheck = [ "systembridgeconnector" ];
43
44 nativeCheckInputs = [
45 pytest-aiohttp
46 pytest-socket
47 pytestCheckHook
48 syrupy
49 ];
50
51 __darwinAllowLocalNetworking = true;
52
53 disabledTests = [
54 "test_get_data"
55 "test_wait_for_response_timeout"
56 ];
57
58 disabledTestPaths = [
59 # https://github.com/timmo001/system-bridge-connector/commit/18da51bd67e6d2a83d08f0c19c904326863264ca
60 "tests/test__version.py"
61 ];
62
63 pytestFlags = [ "--snapshot-warn-unused" ];
64
65 meta = {
66 changelog = "https://github.com/timmo001/system-bridge-connector/releases/tag/${version}";
67 description = "This is the connector package for the System Bridge project";
68 homepage = "https://github.com/timmo001/system-bridge-connector";
69 license = lib.licenses.asl20;
70 maintainers = with lib.maintainers; [ dotlambda ];
71 };
72}