diff options
author | Robert Schütz <nix@dotlambda.de> | 2024-03-13 23:05:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 23:05:40 +0000 |
commit | 229574105fd4c3f28ea497eb8b0e9eed1eca364e (patch) | |
tree | a76358c4caf7d41813f914d481d4278f5d798145 | |
parent | 962ea39cf458105b39431b7e5e0cf31819d3963f (diff) | |
parent | fbeaed901b352d68af3e4d1d53853317aec06fe0 (diff) | |
download | nixlib-229574105fd4c3f28ea497eb8b0e9eed1eca364e.tar nixlib-229574105fd4c3f28ea497eb8b0e9eed1eca364e.tar.gz nixlib-229574105fd4c3f28ea497eb8b0e9eed1eca364e.tar.bz2 nixlib-229574105fd4c3f28ea497eb8b0e9eed1eca364e.tar.lz nixlib-229574105fd4c3f28ea497eb8b0e9eed1eca364e.tar.xz nixlib-229574105fd4c3f28ea497eb8b0e9eed1eca364e.tar.zst nixlib-229574105fd4c3f28ea497eb8b0e9eed1eca364e.zip |
Merge pull request #294319 from dotlambda/systembridgeconnector-tests
python311Packages.systembridgeconnector: run tests
-rw-r--r-- | pkgs/development/python-modules/systembridgeconnector/default.nix | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/systembridgeconnector/default.nix b/pkgs/development/python-modules/systembridgeconnector/default.nix index 111517c6ca5e..f5bb1e63136b 100644 --- a/pkgs/development/python-modules/systembridgeconnector/default.nix +++ b/pkgs/development/python-modules/systembridgeconnector/default.nix @@ -2,10 +2,14 @@ , buildPythonPackage , pythonOlder , fetchFromGitHub +, fetchpatch2 , setuptools , aiohttp , incremental , systembridgemodels +, pytest-aiohttp +, pytest-socket +, pytestCheckHook }: buildPythonPackage rec { @@ -22,6 +26,17 @@ buildPythonPackage rec { hash = "sha256-AjdWDEotz5AUo+auxBqXu7EMv/Kt97DZ6vOrFunZ2Fw="; }; + patches = [ + (fetchpatch2 { + url = "https://github.com/timmo001/system-bridge-connector/commit/a9030cf175ab4b51d77010de89e83cbb426448c2.patch"; + hash = "sha256-0N8knoaEvymSvC92BxDKR0j52oasvOzWosFtHMI2Qmc="; + }) + (fetchpatch2 { + url = "https://github.com/timmo001/system-bridge-connector/commit/25aa172775ee983dc4a29b8dda880aefbad70040.patch"; + hash = "sha256-PedW1S1gZmWkS4sJBqSAx3aoA1KppYS5Xlhoaxqkcd4="; + }) + ]; + nativeBuildInputs = [ setuptools ]; @@ -34,8 +49,16 @@ buildPythonPackage rec { pythonImportsCheck = [ "systembridgeconnector" ]; - # upstream has no tests - doCheck = false; + nativeCheckInputs = [ + pytest-aiohttp + pytest-socket + pytestCheckHook + ]; + + disabledTests = [ + # ConnectionClosedException: Connection closed to server + "test_get_files" + ]; meta = { changelog = "https://github.com/timmo001/system-bridge-connector/releases/tag/${version}"; |