Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 41 lines 987 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, python 5, dbus, dbus-python, pytest, pytestcov, pytest-asyncio, pytest-timeout 6}: 7 8buildPythonPackage rec { 9 pname = "dbus-next"; 10 version = "0.2.2"; 11 12 src = fetchFromGitHub { 13 owner = "altdesktop"; 14 repo = "python-dbus-next"; 15 rev = "v${version}"; 16 sha256 = "0x78ghkci4las13gwbrm8fzg671lx1q2cn8h0f64ki8yag1myia1"; 17 }; 18 19 checkInputs = [ 20 dbus 21 dbus-python 22 pytest 23 pytestcov 24 pytest-asyncio 25 pytest-timeout 26 ]; 27 28 # test_peer_interface hits a timeout 29 checkPhase = '' 30 dbus-run-session --config-file=${dbus.daemon}/share/dbus-1/session.conf \ 31 ${python.interpreter} -m pytest -sv --cov=dbus_next \ 32 -k "not test_peer_interface" 33 ''; 34 35 meta = with lib; { 36 homepage = "https://github.com/altdesktop/python-dbus-next"; 37 description = "A zero-dependency DBus library for Python with asyncio support"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ sfrijters ]; 40 }; 41}