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