summary refs log tree commit diff
path: root/pkgs/development/python-modules/jeepney
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-06-10 14:55:06 +0200
committerRobert Schütz <dev@schuetz-co.de>2021-06-10 15:28:30 +0200
commitb633a6d1f72ad91c60a2a6d31f9479a3b167d86d (patch)
tree21668de3b4d5a7729603b7c398f208898336d68f /pkgs/development/python-modules/jeepney
parent3f7c764f0eef19e3c850ce2e96a40ef1bbef62af (diff)
downloadnixpkgs-b633a6d1f72ad91c60a2a6d31f9479a3b167d86d.tar
nixpkgs-b633a6d1f72ad91c60a2a6d31f9479a3b167d86d.tar.gz
nixpkgs-b633a6d1f72ad91c60a2a6d31f9479a3b167d86d.tar.bz2
nixpkgs-b633a6d1f72ad91c60a2a6d31f9479a3b167d86d.tar.lz
nixpkgs-b633a6d1f72ad91c60a2a6d31f9479a3b167d86d.tar.xz
nixpkgs-b633a6d1f72ad91c60a2a6d31f9479a3b167d86d.tar.zst
nixpkgs-b633a6d1f72ad91c60a2a6d31f9479a3b167d86d.zip
python3Packages.jeepney: run integration tests
Diffstat (limited to 'pkgs/development/python-modules/jeepney')
-rw-r--r--pkgs/development/python-modules/jeepney/default.nix30
1 files changed, 23 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/jeepney/default.nix b/pkgs/development/python-modules/jeepney/default.nix
index 84096c6db4f..cea428a9ffd 100644
--- a/pkgs/development/python-modules/jeepney/default.nix
+++ b/pkgs/development/python-modules/jeepney/default.nix
@@ -2,9 +2,11 @@
 , buildPythonPackage
 , fetchPypi
 , pythonOlder
+, dbus
 , pytest
+, pytest-trio
+, pytest-asyncio
 , testpath
-, tornado
 , trio
 }:
 
@@ -12,30 +14,44 @@ buildPythonPackage rec {
   pname = "jeepney";
   version = "0.6.0";
 
-  disabled = pythonOlder "3.5";
+  disabled = pythonOlder "3.6";
 
   src = fetchPypi {
     inherit pname version;
     sha256 = "7d59b6622675ca9e993a6bd38de845051d315f8b0c72cca3aef733a20b648657";
   };
 
-  propagatedBuildInputs = [
-    tornado
-  ];
-
   checkInputs = [
+    dbus
     pytest
+    pytest-trio
+    pytest-asyncio
     testpath
     trio
   ];
 
   checkPhase = ''
-    pytest
+    runHook preCheck
+
+    dbus-run-session --config-file=${dbus}/share/dbus-1/session.conf -- pytest
+
+    runHook postCheck
   '';
 
+  pythonImportsCheck = [
+    "jeepney"
+    "jeepney.auth"
+    "jeepney.io"
+    "jeepney.io.asyncio"
+    "jeepney.io.blocking"
+    "jeepney.io.threading"
+    "jeepney.io.trio"
+  ];
+
   meta = with lib; {
     homepage = "https://gitlab.com/takluyver/jeepney";
     description = "Pure Python DBus interface";
     license = licenses.mit;
+    maintainers = with maintainers; [ dotlambda ];
   };
 }