summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/matrix-nio
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/matrix-nio')
-rw-r--r--pkgs/development/python-modules/matrix-nio/default.nix31
1 files changed, 28 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/matrix-nio/default.nix b/pkgs/development/python-modules/matrix-nio/default.nix
index 69774b58eb69..3e613fd89a50 100644
--- a/pkgs/development/python-modules/matrix-nio/default.nix
+++ b/pkgs/development/python-modules/matrix-nio/default.nix
@@ -2,9 +2,11 @@
, buildPythonPackage
, fetchFromGitHub
, git
+, poetry-core
, attrs
, future
, aiohttp
+, aiohttp-socks
, aiofiles
, h11
, h2
@@ -16,27 +18,37 @@
, peewee
, cachetools
, atomicwrites
+, pytestCheckHook
+, faker
+, aioresponses
+, hypothesis
+, pytest-aiohttp
+, pytest-benchmark
}:
buildPythonPackage rec {
pname = "matrix-nio";
- version = "0.15.2";
+ version = "0.18.1";
+ format = "pyproject";
src = fetchFromGitHub {
owner = "poljar";
repo = "matrix-nio";
rev = version;
- sha256 = "190xw3cvk4amr9pl8ip2i7k3xdjd0231kn2zl6chny5axx22p1dv";
+ sha256 = "QHNirglqSxGMmbST96LUp9MHoGj0yAwLoTRlsbMqwaM=";
};
nativeBuildInputs = [
git
+ poetry-core
+ pytestCheckHook
];
propagatedBuildInputs = [
attrs
future
aiohttp
+ aiohttp-socks
aiofiles
h11
h2
@@ -50,7 +62,20 @@ buildPythonPackage rec {
atomicwrites
];
- doCheck = false;
+ checkInputs = [
+ faker
+ aioresponses
+ hypothesis
+ pytest-aiohttp
+ pytest-benchmark
+ ];
+
+ disabledTests = [
+ # touches network
+ "test_connect_wrapper"
+ # time dependent and flaky
+ "test_transfer_monitor_callbacks"
+ ];
meta = with lib; {
description = "A Python Matrix client library, designed according to sans I/O principles";