1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/xapp/default.nix

44 lines
860 B
Nix
Raw Normal View History

{ lib, stdenv
2019-12-13 19:33:27 +00:00
, fetchFromGitHub
, buildPythonPackage
, psutil
, pygobject3
, gtk3
, gobject-introspection
, xapps
, polkit
}:
buildPythonPackage rec {
pname = "xapp";
2020-05-10 03:21:08 +01:00
version = "2.0.1";
2019-12-13 19:33:27 +00:00
src = fetchFromGitHub {
owner = "linuxmint";
repo = "python-xapp";
rev = version;
2020-05-10 03:21:08 +01:00
sha256 = "1pp3z4q6ryxcc26kaq222j53ji110n2v7rx29c7vy1fbb8mq64im";
2019-12-13 19:33:27 +00:00
};
propagatedBuildInputs = [
psutil
pygobject3
gtk3
gobject-introspection
xapps
polkit
];
postPatch = ''
substituteInPlace "xapp/os.py" --replace "/usr/bin/pkexec" "${polkit}/bin/pkexec"
'';
meta = with lib; {
2019-12-13 19:33:27 +00:00
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 ];
};
}