nixpkgs/pkgs/development/python-modules/xapp/default.nix

47 lines
907 B
Nix
Raw Normal View History

{ lib
2019-12-13 19:33:27 +00:00
, fetchFromGitHub
, buildPythonPackage
, psutil
, pygobject3
, gtk3
, gobject-introspection
, xapps
, polkit
}:
buildPythonPackage rec {
pname = "xapp";
2021-01-28 18:56:14 +00:00
version = "2.0.2";
2019-12-13 19:33:27 +00:00
src = fetchFromGitHub {
owner = "linuxmint";
repo = "python-xapp";
rev = version;
2021-01-28 18:56:14 +00:00
sha256 = "1zgh4k96i939w4scikajmlriayk1zg3md16f8fckjvqbphpxrysl";
2019-12-13 19:33:27 +00:00
};
propagatedBuildInputs = [
psutil
pygobject3
gtk3
gobject-introspection
xapps
polkit
];
postPatch = ''
substituteInPlace "xapp/os.py" --replace "/usr/bin/pkexec" "${polkit}/bin/pkexec"
'';
2021-01-28 18:56:14 +00:00
doCheck = false;
pythonImportsCheck = [ "xapp" ];
meta = with lib; {
2019-12-13 19:33:27 +00:00
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 ];
};
}