at master 48 lines 989 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 gettext, 7 caja, 8 gtk3, 9 python3Packages, 10 mateUpdateScript, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "python-caja"; 15 version = "1.28.0"; 16 17 src = fetchurl { 18 url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 19 sha256 = "sFbCOdvf4z7QzIQx+zUAqTj3h7Weh19f+TV4umb2gNY="; 20 }; 21 22 nativeBuildInputs = [ 23 pkg-config 24 gettext 25 python3Packages.wrapPython 26 ]; 27 28 buildInputs = [ 29 caja 30 gtk3 31 python3Packages.python 32 python3Packages.pygobject3 33 ]; 34 35 configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.0" ]; 36 37 enableParallelBuilding = true; 38 39 passthru.updateScript = mateUpdateScript { inherit pname; }; 40 41 meta = with lib; { 42 description = "Python binding for Caja components"; 43 homepage = "https://github.com/mate-desktop/python-caja"; 44 license = [ licenses.gpl2Plus ]; 45 platforms = platforms.unix; 46 teams = [ teams.mate ]; 47 }; 48}