nixpkgs/pkgs/development/python-modules/xapp/default.nix

65 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
python,
meson,
ninja,
psutil,
pygobject3,
gtk3,
gobject-introspection,
xapp,
polkit,
gitUpdater,
}:
buildPythonPackage rec {
pname = "xapp";
version = "2.4.2";
format = "other";
src = fetchFromGitHub {
owner = "linuxmint";
repo = "python-xapp";
rev = version;
hash = "sha256-Gbm4YT9ZyrROOAbKz5xYd9J9YG9cUL2Oo6dDCPciaBs=";
};
nativeBuildInputs = [
meson
ninja
];
propagatedBuildInputs = [
psutil
pygobject3
gtk3
gobject-introspection
xapp
polkit
];
postPatch = ''
substituteInPlace "xapp/os.py" \
--replace-fail "/usr/bin/pkexec" "${polkit}/bin/pkexec"
'';
doCheck = false;
pythonImportsCheck = [ "xapp" ];
passthru = {
updateScript = gitUpdater { ignoredVersions = "^master.*"; };
skipBulkUpdate = true; # This should be bumped as part of Cinnamon update.
};
meta = with lib; {
homepage = "https://github.com/linuxmint/python-xapp";
description = "Cross-desktop libraries and common resources for python";
license = licenses.lgpl2Plus;
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
};
}