2024-06-13 09:36:54 +00:00
|
|
|
|
{
|
|
|
|
|
stdenv,
|
|
|
|
|
lib,
|
|
|
|
|
substituteAll,
|
|
|
|
|
fetchurl,
|
|
|
|
|
meson,
|
|
|
|
|
ninja,
|
|
|
|
|
pkg-config,
|
|
|
|
|
gtk-doc,
|
|
|
|
|
docbook-xsl-nons,
|
|
|
|
|
docbook_xml_dtd_412,
|
|
|
|
|
python3,
|
|
|
|
|
nautilus,
|
|
|
|
|
gnome,
|
2018-10-07 06:32:08 +00:00
|
|
|
|
}:
|
|
|
|
|
|
2024-06-13 09:36:54 +00:00
|
|
|
|
stdenv.mkDerivation (finalAttrs:{
|
2018-10-07 06:32:08 +00:00
|
|
|
|
pname = "nautilus-python";
|
2024-04-19 11:18:53 +00:00
|
|
|
|
version = "4.0.1";
|
2018-10-07 06:32:08 +00:00
|
|
|
|
|
2024-06-13 09:36:54 +00:00
|
|
|
|
outputs = [
|
|
|
|
|
"out"
|
|
|
|
|
"dev"
|
|
|
|
|
"doc"
|
|
|
|
|
"devdoc"
|
|
|
|
|
];
|
2018-10-07 06:32:08 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-06-13 09:36:54 +00:00
|
|
|
|
url = "mirror://gnome/sources/nautilus-python/${lib.versions.majorMinor finalAttrs.version}/nautilus-python-${finalAttrs.version}.tar.xz";
|
2024-04-19 11:18:53 +00:00
|
|
|
|
hash = "sha256-/EnBBPsyoK0ZWmawE2eEzRnRDYs+jVnV7n9z6PlOko8=";
|
2018-10-07 06:32:08 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-10-25 05:30:11 +00:00
|
|
|
|
patches = [
|
|
|
|
|
# Make PyGObject’s gi library available.
|
|
|
|
|
(substituteAll {
|
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
|
pythonPaths = lib.concatMapStringsSep ", " (pkg: "'${pkg}/${python3.sitePackages}'") [
|
|
|
|
|
python3.pkgs.pygobject3
|
|
|
|
|
];
|
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
|
2018-10-07 06:32:08 +00:00
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 02:21:50 +00:00
|
|
|
|
pkg-config
|
2022-08-12 21:08:35 +00:00
|
|
|
|
meson
|
|
|
|
|
ninja
|
2018-10-07 06:32:08 +00:00
|
|
|
|
gtk-doc
|
2022-08-12 21:08:35 +00:00
|
|
|
|
docbook-xsl-nons
|
2018-10-07 06:32:08 +00:00
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
python3
|
|
|
|
|
python3.pkgs.pygobject3
|
|
|
|
|
nautilus
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
|
updateScript = gnome.updateScript {
|
2024-06-13 09:36:54 +00:00
|
|
|
|
packageName = "nautilus-python";
|
2018-10-07 06:32:08 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
|
meta = with lib; {
|
2018-10-07 06:32:08 +00:00
|
|
|
|
description = "Python bindings for the Nautilus Extension API";
|
2024-04-30 14:14:16 +00:00
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/nautilus-python";
|
2018-10-07 06:32:08 +00:00
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 12:40:51 +00:00
|
|
|
|
maintainers = teams.gnome.members;
|
2018-10-07 06:32:08 +00:00
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
};
|
2024-06-13 09:36:54 +00:00
|
|
|
|
})
|