2018-12-12 11:01:33 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2021-08-26 21:32:36 +02:00
|
|
|
, async-timeout
|
2021-06-10 14:55:06 +02:00
|
|
|
, dbus
|
2018-12-12 11:01:33 +01:00
|
|
|
, pytest
|
2021-06-10 14:55:06 +02:00
|
|
|
, pytest-trio
|
|
|
|
, pytest-asyncio
|
2018-12-12 11:01:33 +01:00
|
|
|
, testpath
|
2020-11-30 21:53:51 +01:00
|
|
|
, trio
|
2018-12-12 11:01:33 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jeepney";
|
2021-08-26 21:32:36 +02:00
|
|
|
version = "0.7.1";
|
2018-12-12 11:01:33 +01:00
|
|
|
|
2021-06-10 14:55:06 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-12-12 11:01:33 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-26 21:32:36 +02:00
|
|
|
sha256 = "fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f";
|
2018-12-12 11:01:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-08-26 21:32:36 +02:00
|
|
|
async-timeout
|
2021-06-10 14:55:06 +02:00
|
|
|
dbus
|
2018-12-12 11:01:33 +01:00
|
|
|
pytest
|
2021-06-10 14:55:06 +02:00
|
|
|
pytest-trio
|
|
|
|
pytest-asyncio
|
2018-12-12 11:01:33 +01:00
|
|
|
testpath
|
2020-11-30 21:53:51 +01:00
|
|
|
trio
|
2018-12-12 11:01:33 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2021-06-10 14:55:06 +02:00
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
dbus-run-session --config-file=${dbus}/share/dbus-1/session.conf -- pytest
|
|
|
|
|
|
|
|
runHook postCheck
|
2018-12-12 11:01:33 +01:00
|
|
|
'';
|
|
|
|
|
2021-06-10 14:55:06 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"jeepney"
|
|
|
|
"jeepney.auth"
|
|
|
|
"jeepney.io"
|
|
|
|
"jeepney.io.asyncio"
|
|
|
|
"jeepney.io.blocking"
|
|
|
|
"jeepney.io.threading"
|
|
|
|
"jeepney.io.trio"
|
|
|
|
];
|
|
|
|
|
2018-12-12 11:01:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://gitlab.com/takluyver/jeepney";
|
2018-12-12 11:01:33 +01:00
|
|
|
description = "Pure Python DBus interface";
|
|
|
|
license = licenses.mit;
|
2021-06-10 14:55:06 +02:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2018-12-12 11:01:33 +01:00
|
|
|
};
|
|
|
|
}
|