Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / systembridgeconnector / default.nix
blob04132ffe081a2864a15c34f721126fa21bb7aa86
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , fetchpatch2
6 , setuptools
7 , aiohttp
8 , incremental
9 , systembridgemodels
10 , pytest-aiohttp
11 , pytest-socket
12 , pytestCheckHook
15 buildPythonPackage rec {
16   pname = "systembridgeconnector";
17   version = "4.0.4";
18   pyproject = true;
20   disabled = pythonOlder "3.11";
22   src = fetchFromGitHub {
23     owner = "timmo001";
24     repo = "system-bridge-connector";
25     rev = "refs/tags/${version}";
26     hash = "sha256-Guh9qbRLp+b2SuFgBx7jf16vRShuHJBi3WOVn9Akce8=";
27   };
29   patches = [
30     (fetchpatch2 {
31       url = "https://github.com/timmo001/system-bridge-connector/commit/25aa172775ee983dc4a29b8dda880aefbad70040.patch";
32       hash = "sha256-PedW1S1gZmWkS4sJBqSAx3aoA1KppYS5Xlhoaxqkcd4=";
33     })
34   ];
36   postPatch = ''
37     substituteInPlace systembridgeconnector/_version.py \
38       --replace-fail ", dev=0" ""
39   '';
41   nativeBuildInputs = [
42     setuptools
43   ];
45   propagatedBuildInputs = [
46     aiohttp
47     incremental
48     systembridgemodels
49   ];
51   pythonImportsCheck = [ "systembridgeconnector" ];
53   nativeCheckInputs = [
54     pytest-aiohttp
55     pytest-socket
56     pytestCheckHook
57   ];
59   disabledTests = [
60     # ConnectionClosedException: Connection closed to server
61     "test_get_files"
62   ];
64   meta = {
65     changelog = "https://github.com/timmo001/system-bridge-connector/releases/tag/${version}";
66     description = "This is the connector package for the System Bridge project";
67     homepage = "https://github.com/timmo001/system-bridge-connector";
68     license = lib.licenses.asl20;
69     maintainers = with lib.maintainers; [ dotlambda ];
70   };