nixpkgs/pkgs/by-name/na/nautilus-python/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.4 KiB
Nix
Raw Normal View History

{
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
}:
stdenv.mkDerivation (finalAttrs:{
2018-10-07 06:32:08 +00:00
pname = "nautilus-python";
version = "4.0.1";
2018-10-07 06:32:08 +00:00
outputs = [
"out"
"dev"
"doc"
"devdoc"
];
2018-10-07 06:32:08 +00:00
src = fetchurl {
url = "mirror://gnome/sources/nautilus-python/${lib.versions.majorMinor finalAttrs.version}/nautilus-python-${finalAttrs.version}.tar.xz";
hash = "sha256-/EnBBPsyoK0ZWmawE2eEzRnRDYs+jVnV7n9z6PlOko8=";
2018-10-07 06:32:08 +00:00
};
2021-10-25 05:30:11 +00:00
patches = [
# Make PyGObjects 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
meson
ninja
2018-10-07 06:32:08 +00:00
gtk-doc
docbook-xsl-nons
2018-10-07 06:32:08 +00:00
docbook_xml_dtd_412
];
buildInputs = [
python3
python3.pkgs.pygobject3
nautilus
];
passthru = {
updateScript = gnome.updateScript {
packageName = "nautilus-python";
2018-10-07 06:32:08 +00:00
};
};
meta = with lib; {
2018-10-07 06:32:08 +00:00
description = "Python bindings for the Nautilus Extension API";
homepage = "https://gitlab.gnome.org/GNOME/nautilus-python";
2018-10-07 06:32:08 +00:00
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
2018-10-07 06:32:08 +00:00
platforms = platforms.unix;
};
})