Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 862 B view raw
1{ stdenv 2, fetchFromGitHub 3, buildPythonPackage 4, psutil 5, pygobject3 6, gtk3 7, gobject-introspection 8, xapps 9, polkit 10}: 11 12buildPythonPackage rec { 13 pname = "xapp"; 14 version = "2.0.1"; 15 16 src = fetchFromGitHub { 17 owner = "linuxmint"; 18 repo = "python-xapp"; 19 rev = version; 20 sha256 = "1pp3z4q6ryxcc26kaq222j53ji110n2v7rx29c7vy1fbb8mq64im"; 21 }; 22 23 propagatedBuildInputs = [ 24 psutil 25 pygobject3 26 gtk3 27 gobject-introspection 28 xapps 29 polkit 30 ]; 31 32 postPatch = '' 33 substituteInPlace "xapp/os.py" --replace "/usr/bin/pkexec" "${polkit}/bin/pkexec" 34 ''; 35 36 meta = with stdenv.lib; { 37 homepage = "https://github.com/linuxmint/python-xapp"; 38 description = "Cross-desktop libraries and common resources for python"; 39 license = licenses.lgpl2; 40 platforms = platforms.linux; 41 maintainers = [ maintainers.mkg20001 ]; 42 }; 43}