mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-21 15:30:27 +08:00
This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
meson,
|
|
ninja,
|
|
psutil,
|
|
pygobject3,
|
|
gtk3,
|
|
gobject-introspection,
|
|
xapp,
|
|
polkit,
|
|
gitUpdater,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-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;
|
|
};
|
|
}
|