python3Packages.jeepney: run integration tests

This commit is contained in:
Robert Schütz 2021-06-10 14:55:06 +02:00
parent 3f7c764f0e
commit b633a6d1f7

View file

@ -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 ];
};
}