13 stdenv.mkDerivation rec {
14 pname = "nemo-python";
17 src = fetchFromGitHub {
19 repo = "nemo-extensions";
21 hash = "sha256-qghGgd+OWYiXvcGUfgiQT6rR4mJPAOfOtYB3lWLg4iA=";
24 sourceRoot = "${src.name}/nemo-python";
27 # Load extensions from NEMO_PYTHON_EXTENSION_DIR environment variable
28 # https://github.com/NixOS/nixpkgs/issues/78327
29 ./load-extensions-from-env.patch
31 # Pick up all passthru.nemoPythonExtensionDeps via nemo-with-extensions wrapper
46 python3.pkgs.pygobject3
50 # Tries to load libpython3.so via g_module_open ().
51 substituteInPlace meson.build \
52 --replace "get_option('prefix'), get_option('libdir')" "'${python3}/lib'"
55 PKG_CONFIG_LIBNEMO_EXTENSION_EXTENSIONDIR = "${placeholder "out"}/${nemo.extensiondir}";
57 passthru.nemoPythonExtensionDeps = [ python3.pkgs.pygobject3 ];
60 homepage = "https://github.com/linuxmint/nemo-extensions/tree/master/nemo-python";
61 description = "Python bindings for the Nemo extension library";
62 license = licenses.gpl2Plus;
63 platforms = platforms.linux;
64 maintainers = teams.cinnamon.members;