2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2021-09-18 10:52:07 +00:00
|
|
|
, async-timeout
|
2021-06-28 23:13:55 +00:00
|
|
|
, dbus
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
2021-06-28 23:13:55 +00:00
|
|
|
, pytest-trio
|
|
|
|
, pytest-asyncio
|
2020-04-24 23:36:52 +00:00
|
|
|
, testpath
|
2020-12-07 07:45:13 +00:00
|
|
|
, trio
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jeepney";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "0.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
async-timeout
|
2021-06-28 23:13:55 +00:00
|
|
|
dbus
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest
|
2021-06-28 23:13:55 +00:00
|
|
|
pytest-trio
|
|
|
|
pytest-asyncio
|
2020-04-24 23:36:52 +00:00
|
|
|
testpath
|
2020-12-07 07:45:13 +00:00
|
|
|
trio
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2021-06-28 23:13:55 +00:00
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
dbus-run-session --config-file=${dbus}/share/dbus-1/session.conf -- pytest
|
|
|
|
|
|
|
|
runHook postCheck
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"jeepney"
|
|
|
|
"jeepney.auth"
|
|
|
|
"jeepney.io"
|
|
|
|
"jeepney.io.asyncio"
|
|
|
|
"jeepney.io.blocking"
|
|
|
|
"jeepney.io.threading"
|
|
|
|
"jeepney.io.trio"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://gitlab.com/takluyver/jeepney";
|
|
|
|
description = "Pure Python DBus interface";
|
|
|
|
license = licenses.mit;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|