2018-12-12 10:01:33 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2022-04-17 18:40:31 +00:00
|
|
|
, flit-core
|
2021-08-26 19:32:36 +00:00
|
|
|
, async-timeout
|
2021-06-10 12:55:06 +00:00
|
|
|
, dbus
|
2018-12-12 10:01:33 +00:00
|
|
|
, pytest
|
2021-06-10 12:55:06 +00:00
|
|
|
, pytest-trio
|
|
|
|
, pytest-asyncio
|
2018-12-12 10:01:33 +00:00
|
|
|
, testpath
|
2020-11-30 20:53:51 +00:00
|
|
|
, trio
|
2018-12-12 10:01:33 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jeepney";
|
2022-04-17 18:40:31 +00:00
|
|
|
version = "0.8.0";
|
2018-12-12 10:01:33 +00:00
|
|
|
|
2022-04-17 18:40:31 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
format = "pyproject";
|
2018-12-12 10:01:33 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-17 18:40:31 +00:00
|
|
|
sha256 = "5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806";
|
2018-12-12 10:01:33 +00:00
|
|
|
};
|
|
|
|
|
2022-04-17 18:40:31 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-08-26 19:32:36 +00:00
|
|
|
async-timeout
|
2021-06-10 12:55:06 +00:00
|
|
|
dbus
|
2018-12-12 10:01:33 +00:00
|
|
|
pytest
|
2021-06-10 12:55:06 +00:00
|
|
|
pytest-trio
|
|
|
|
pytest-asyncio
|
2018-12-12 10:01:33 +00:00
|
|
|
testpath
|
2020-11-30 20:53:51 +00:00
|
|
|
trio
|
2018-12-12 10:01:33 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2021-06-10 12:55:06 +00:00
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
dbus-run-session --config-file=${dbus}/share/dbus-1/session.conf -- pytest
|
|
|
|
|
|
|
|
runHook postCheck
|
2018-12-12 10:01:33 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-10 12:55:06 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"jeepney"
|
|
|
|
"jeepney.auth"
|
|
|
|
"jeepney.io"
|
|
|
|
"jeepney.io.asyncio"
|
|
|
|
"jeepney.io.blocking"
|
|
|
|
"jeepney.io.threading"
|
|
|
|
"jeepney.io.trio"
|
|
|
|
];
|
|
|
|
|
2018-12-12 10:01:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://gitlab.com/takluyver/jeepney";
|
2018-12-12 10:01:33 +00:00
|
|
|
description = "Pure Python DBus interface";
|
|
|
|
license = licenses.mit;
|
2021-06-10 12:55:06 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2018-12-12 10:01:33 +00:00
|
|
|
};
|
|
|
|
}
|