python3.pkgs.xapp: 2.2.2 -> 2.4.0

Switched to meson.

https://github.com/linuxmint/python3-xapp/compare/2.2.2...2.4.0
This commit is contained in:
Bobby Rong
2022-11-29 10:11:42 +08:00
parent b40cf400d6
commit 7e4fb8daf5
2 changed files with 20 additions and 2 deletions
@@ -1,6 +1,9 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, python
, meson
, ninja
, psutil
, pygobject3
, gtk3
@@ -11,15 +14,22 @@
buildPythonPackage rec {
pname = "xapp";
version = "2.2.2";
version = "2.4.0";
format = "other";
src = fetchFromGitHub {
owner = "linuxmint";
repo = "python-xapp";
rev = version;
hash = "sha256-ntjJ/O6HiRZMsqsuQY4HLM4fBE0aWpn/L4n5YCRlhhg=";
hash = "sha256-qEK71cGNGmaThxlFVsfnLUTD83RTr8GP+501c4UbHCk=";
};
nativeBuildInputs = [
meson
ninja
];
propagatedBuildInputs = [
psutil
pygobject3
@@ -33,6 +43,13 @@ buildPythonPackage rec {
substituteInPlace "xapp/os.py" --replace "/usr/bin/pkexec" "${polkit}/bin/pkexec"
'';
postInstall = ''
# This is typically set by pipInstallHook/eggInstallHook,
# so we have to do so manually when using meson.
# https://github.com/NixOS/nixpkgs/issues/175227
export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
'';
doCheck = false;
pythonImportsCheck = [ "xapp" ];
+1
View File
@@ -12053,6 +12053,7 @@ self: super: with self; {
};
xapp = callPackage ../development/python-modules/xapp {
inherit (pkgs.buildPackages) meson;
inherit (pkgs) gtk3 gobject-introspection polkit;
inherit (pkgs.cinnamon) xapp;
};