Skip to content

Commit

Permalink
pythonPackages.dbus-next: init at 0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
SFrijters authored and Jon committed Sep 22, 2020
1 parent 8463f5c commit 08ab7f9
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pkgs/development/python-modules/dbus-next/default.nix
@@ -0,0 +1,41 @@
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, python
, dbus, dbus-python, pytest, pytestcov, pytest-asyncio, pytest-timeout
}:

buildPythonPackage rec {
pname = "dbus-next";
version = "0.1.4";

src = fetchFromGitHub {
owner = "altdesktop";
repo = "python-dbus-next";
rev = "v${version}";
sha256 = "sha256-C/aFDHmt6Qws6ek+++wM5GRN6TEvMGMiFktKIXRdGL0=";
};

checkInputs = [
dbus
dbus-python
pytest
pytestcov
pytest-asyncio
pytest-timeout
];

# test_peer_interface hits a timeout
checkPhase = ''
dbus-run-session --config-file=${dbus.daemon}/share/dbus-1/session.conf \
${python.interpreter} -m pytest -sv --cov=dbus_next \
-k "not test_peer_interface"
'';

meta = with stdenv.lib; {
homepage = "https://github.com/altdesktop/python-dbus-next";
description = "A zero-dependency DBus library for Python with asyncio support";
license = licenses.mit;
maintainers = with maintainers; [ sfrijters ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -1462,6 +1462,8 @@ in {

dbfread = callPackage ../development/python-modules/dbfread { };

dbus-next = callPackage ../development/python-modules/dbus-next { };

dbus-python = callPackage ../development/python-modules/dbus { inherit (pkgs) dbus pkgconfig; };

dcmstack = callPackage ../development/python-modules/dcmstack { };
Expand Down

0 comments on commit 08ab7f9

Please sign in to comment.