2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
psutil,
|
|
|
|
pygobject3,
|
|
|
|
gtk3,
|
|
|
|
gobject-introspection,
|
|
|
|
xapp,
|
|
|
|
polkit,
|
|
|
|
gitUpdater,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-07-27 06:49:29 +00:00
|
|
|
pname = "python-xapp";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "2.4.2";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
format = "other";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = "python-xapp";
|
2024-06-20 14:57:18 +00:00
|
|
|
rev = version;
|
|
|
|
hash = "sha256-Gbm4YT9ZyrROOAbKz5xYd9J9YG9cUL2Oo6dDCPciaBs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
psutil
|
|
|
|
pygobject3
|
|
|
|
gtk3
|
|
|
|
gobject-introspection
|
2022-08-12 12:06:08 +00:00
|
|
|
xapp
|
2020-04-24 23:36:52 +00:00
|
|
|
polkit
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2024-06-20 14:57:18 +00:00
|
|
|
substituteInPlace "xapp/os.py" \
|
|
|
|
--replace-fail "/usr/bin/pkexec" "${polkit}/bin/pkexec"
|
2022-12-02 08:20:57 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "xapp" ];
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gitUpdater { ignoredVersions = "^master.*"; };
|
|
|
|
skipBulkUpdate = true; # This should be bumped as part of Cinnamon update.
|
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
|
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";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2022-11-02 22:02:43 +00:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|