mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
be91726358
https://github.com/linuxmint/xapps redirects to https://github.com/linuxmint/xapp, and the meson project name is xapp.
47 lines
902 B
Nix
47 lines
902 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, psutil
|
|
, pygobject3
|
|
, gtk3
|
|
, gobject-introspection
|
|
, xapp
|
|
, polkit
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xapp";
|
|
version = "2.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxmint";
|
|
repo = "python-xapp";
|
|
rev = version;
|
|
hash = "sha256-ntjJ/O6HiRZMsqsuQY4HLM4fBE0aWpn/L4n5YCRlhhg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
psutil
|
|
pygobject3
|
|
gtk3
|
|
gobject-introspection
|
|
xapp
|
|
polkit
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace "xapp/os.py" --replace "/usr/bin/pkexec" "${polkit}/bin/pkexec"
|
|
'';
|
|
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "xapp" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/linuxmint/python-xapp";
|
|
description = "Cross-desktop libraries and common resources for python";
|
|
license = licenses.lgpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.mkg20001 ];
|
|
};
|
|
}
|