depot/third_party/nixpkgs/pkgs/development/python-modules/xapp/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

64 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;
};
}