2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2022-04-27 09:35:20 +00:00
|
|
|
, flit-core
|
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";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|