aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/dbus-next/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/dbus-next/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/dbus-next/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/dbus-next/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/dbus-next/default.nix
new file mode 100644
index 000000000000..216e63638501
--- /dev/null
+++ b/infra/libkookie/nixpkgs/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.2.1";
+
+ src = fetchFromGitHub {
+ owner = "altdesktop";
+ repo = "python-dbus-next";
+ rev = "v${version}";
+ sha256 = "0c14mmysx014n1m4pi4ymi6pzxf8dkjr6fm2cmp96x05z9v90vlr";
+ };
+
+ 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 ];
+ };
+}