summary refs log tree commit diff
path: root/pkgs/development/python-modules/xapp
diff options
context:
space:
mode:
authorMaciej Krüger <mkg20001@gmail.com>2019-12-13 20:33:27 +0100
committerworldofpeace <worldofpeace@protonmail.ch>2019-12-14 22:22:14 -0500
commit580a6f492abd158a821682eb7d1c71839108c089 (patch)
tree840550439546b63983f2375193cb8f3875b977e0 /pkgs/development/python-modules/xapp
parent632c4f2c9ba1f88cd5662da7bedf2ca5f0cda4a9 (diff)
downloadnixpkgs-580a6f492abd158a821682eb7d1c71839108c089.tar
nixpkgs-580a6f492abd158a821682eb7d1c71839108c089.tar.gz
nixpkgs-580a6f492abd158a821682eb7d1c71839108c089.tar.bz2
nixpkgs-580a6f492abd158a821682eb7d1c71839108c089.tar.lz
nixpkgs-580a6f492abd158a821682eb7d1c71839108c089.tar.xz
nixpkgs-580a6f492abd158a821682eb7d1c71839108c089.tar.zst
nixpkgs-580a6f492abd158a821682eb7d1c71839108c089.zip
pythonModules.xapp: init at 1.8.1
Diffstat (limited to 'pkgs/development/python-modules/xapp')
-rw-r--r--pkgs/development/python-modules/xapp/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/xapp/default.nix b/pkgs/development/python-modules/xapp/default.nix
new file mode 100644
index 00000000000..440db343025
--- /dev/null
+++ b/pkgs/development/python-modules/xapp/default.nix
@@ -0,0 +1,43 @@
+{ stdenv
+, fetchFromGitHub
+, buildPythonPackage
+, psutil
+, pygobject3
+, gtk3
+, gobject-introspection
+, xapps
+, polkit
+}:
+
+buildPythonPackage rec {
+  pname = "xapp";
+  version = "1.8.1";
+
+  src = fetchFromGitHub {
+    owner = "linuxmint";
+    repo = "python-xapp";
+    rev = version;
+    sha256 = "0vw3cn09nx75lv4d9idp5fdhd81xs279zhbyyilynq29cxxs2zil";
+  };
+
+  propagatedBuildInputs = [
+    psutil
+    pygobject3
+    gtk3
+    gobject-introspection
+    xapps
+    polkit
+  ];
+
+  postPatch = ''
+    substituteInPlace "xapp/os.py" --replace "/usr/bin/pkexec" "${polkit}/bin/pkexec"
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = "https://github.com/linuxmint/python-xapp";
+    description = "Cross-desktop libraries and common resources for python";
+    license = licenses.lgpl2;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.mkg20001 ];
+  };
+}