2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, psutil
|
|
|
|
, pygobject3
|
|
|
|
, gtk3
|
|
|
|
, gobject-introspection
|
|
|
|
, xapps
|
|
|
|
, polkit
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xapp";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "2.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = "python-xapp";
|
|
|
|
rev = version;
|
2021-12-06 16:07:01 +00:00
|
|
|
hash = "sha256-UC+0nbf+SRQsF5R0LcrPpmNbaoRM14DC82JccSpsKsY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
psutil
|
|
|
|
pygobject3
|
|
|
|
gtk3
|
|
|
|
gobject-introspection
|
|
|
|
xapps
|
|
|
|
polkit
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace "xapp/os.py" --replace "/usr/bin/pkexec" "${polkit}/bin/pkexec"
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "xapp" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +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 ];
|
|
|
|
};
|
|
|
|
}
|