[Nix-dev] pygtkspell: new package

Nick Sauce nick.sauce at monumentmail.com
Sat Sep 13 10:55:38 CEST 2014


pygtkspell: new package
---

diff --git \
a/pkgs/development/python-modules/pygtkspell/default.nix \
b/pkgs/development/python-modules/pygtkspell/default.nix
new file mode 100644
index 0000000..62786f4
--- /dev/null
+++ b/pkgs/development/python-modules/pygtkspell/default.nix
@@ -0,0 +1,47 @@
+{ stdenv, fetchurl, pkgconfig
+, python
+, pygtk
+, gtkspell
+}:
+
+let
+  maj_min_ver = "2.25";
+  the_version = "${maj_min_ver}.3";
+
+in
+
+stdenv.mkDerivation rec {
+  name = "pygtkspell-${the_version}";
+
+  src = fetchurl {
+    url = "http://ftp.gnome.org/pub/gnome/sources/gnome-python-extras/" +
+          "${maj_min_ver}/gnome-python-extras-${the_version}.tar.gz";
+    sha256 =
+      "0d834bf5e372979a9d812bd85a0070441e90479cbc14e2c26017fa95ac6c1aff";
+  };
+
+  buildInputs = [
+    python
+    pkgconfig
+    pygtk gtkspell
+  ];
+
+  configureFlags = "--disable-eggtray";
+
+  preBuild = ''
+    cd gtkspell
+  '';
+
+  postInstall = ''
+    cd $out/lib/python*/site-packages
+    ln -s gtk-*/gtkspell.so .
+    ln -s gtk-*/gtkspell.la .
+  '';
+
+  meta = {
+    description = "Python bindings for the gtkspell";
+    homepage = "http://web.archive.org/web/20010611205147/" +
+               "http://www.daa.com.au/~james/pygtk/";
+    license = stdenv.lib.licenses.gpl2;
+  };
+}
diff --git \
a/pkgs/top-level/python-packages.nix \
b/pkgs/top-level/python-packages.nix
index df009a5..34ecbff 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -161,6 +161,11 @@ rec {
     inherit python buildPythonPackage pygobject pycairo isPy3k;
   };
 
+  pygtkspell = import ../development/python-modules/pygtkspell {
+    inherit (pkgs) stdenv fetchurl pkgconfig gtkspell;
+    inherit python pygtk;
+  };
+
   # XXX: how can we get an override here?
   #pyGtkGlade = pygtk.override {
   #  inherit (pkgs.gnome) libglade;




More information about the nix-dev mailing list