mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 16:46:09 +00:00
47 lines
907 B
Nix
47 lines
907 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, psutil
|
|
, pygobject3
|
|
, gtk3
|
|
, gobject-introspection
|
|
, xapps
|
|
, polkit
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xapp";
|
|
version = "2.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxmint";
|
|
repo = "python-xapp";
|
|
rev = version;
|
|
sha256 = "1zgh4k96i939w4scikajmlriayk1zg3md16f8fckjvqbphpxrysl";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
psutil
|
|
pygobject3
|
|
gtk3
|
|
gobject-introspection
|
|
xapps
|
|
polkit
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace "xapp/os.py" --replace "/usr/bin/pkexec" "${polkit}/bin/pkexec"
|
|
'';
|
|
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "xapp" ];
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|