nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 42 lines 998 B view raw
1{ stdenv 2, lib 3, buildPythonPackage 4, fetchFromGitHub 5, python 6, dbus, pytest, pytest-cov, pytest-asyncio, pytest-timeout 7}: 8 9buildPythonPackage rec { 10 pname = "dbus-next"; 11 version = "0.2.3"; 12 13 src = fetchFromGitHub { 14 owner = "altdesktop"; 15 repo = "python-dbus-next"; 16 rev = "v${version}"; 17 sha256 = "sha256-EKEQZFRUe+E65Z6DNCJFL5uCI5kbXrN7Tzd4O0X5Cqo="; 18 }; 19 20 checkInputs = [ 21 dbus 22 pytest 23 pytest-cov 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 broken = stdenv.isDarwin; 37 homepage = "https://github.com/altdesktop/python-dbus-next"; 38 description = "A zero-dependency DBus library for Python with asyncio support"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ sfrijters ]; 41 }; 42}