1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 meson, 6 ninja, 7 psutil, 8 pygobject3, 9 gtk3, 10 gobject-introspection, 11 xapp, 12 polkit, 13 gitUpdater, 14}: 15 16buildPythonPackage rec { 17 pname = "python-xapp"; 18 version = "2.4.2"; 19 20 format = "other"; 21 22 src = fetchFromGitHub { 23 owner = "linuxmint"; 24 repo = "python-xapp"; 25 rev = version; 26 hash = "sha256-Gbm4YT9ZyrROOAbKz5xYd9J9YG9cUL2Oo6dDCPciaBs="; 27 }; 28 29 nativeBuildInputs = [ 30 meson 31 ninja 32 ]; 33 34 propagatedBuildInputs = [ 35 psutil 36 pygobject3 37 gtk3 38 gobject-introspection 39 xapp 40 polkit 41 ]; 42 43 postPatch = '' 44 substituteInPlace "xapp/os.py" \ 45 --replace-fail "/usr/bin/pkexec" "${polkit}/bin/pkexec" 46 ''; 47 48 doCheck = false; 49 pythonImportsCheck = [ "xapp" ]; 50 51 passthru = { 52 updateScript = gitUpdater { ignoredVersions = "^master.*"; }; 53 skipBulkUpdate = true; # This should be bumped as part of Cinnamon update. 54 }; 55 56 meta = with lib; { 57 homepage = "https://github.com/linuxmint/python-xapp"; 58 description = "Cross-desktop libraries and common resources for python"; 59 license = licenses.lgpl2Plus; 60 platforms = platforms.linux; 61 teams = [ teams.cinnamon ]; 62 }; 63}