depot/third_party/nixpkgs/pkgs/development/python-modules/jeepney/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

59 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, async-timeout
, dbus
, pytest
, pytest-trio
, pytest-asyncio
, testpath
, trio
}:
buildPythonPackage rec {
pname = "jeepney";
version = "0.7.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f";
};
checkInputs = [
async-timeout
dbus
pytest
pytest-trio
pytest-asyncio
testpath
trio
];
checkPhase = ''
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 ];
};
}