summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyx
diff options
context:
space:
mode:
authorNicolas Pierron <nicolas.b.pierron@gmail.com>2008-06-01 16:06:18 +0000
committerNicolas Pierron <nicolas.b.pierron@gmail.com>2008-06-01 16:06:18 +0000
commit9768f417834599f02bd278c63d5be3488b25643b (patch)
treef325214d9ecd0107e0452cc041f45a1f59c9c70a /pkgs/development/python-modules/pyx
parent6f08adf32bd2e547241db562593f6ea5271f4eff (diff)
downloadnixpkgs-9768f417834599f02bd278c63d5be3488b25643b.tar
nixpkgs-9768f417834599f02bd278c63d5be3488b25643b.tar.gz
nixpkgs-9768f417834599f02bd278c63d5be3488b25643b.tar.bz2
nixpkgs-9768f417834599f02bd278c63d5be3488b25643b.tar.lz
nixpkgs-9768f417834599f02bd278c63d5be3488b25643b.tar.xz
nixpkgs-9768f417834599f02bd278c63d5be3488b25643b.tar.zst
nixpkgs-9768f417834599f02bd278c63d5be3488b25643b.zip
Add PyX: Python graphics package.
svn path=/nixpkgs/trunk/; revision=11945
Diffstat (limited to 'pkgs/development/python-modules/pyx')
-rw-r--r--pkgs/development/python-modules/pyx/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyx/default.nix b/pkgs/development/python-modules/pyx/default.nix
new file mode 100644
index 00000000000..374158da810
--- /dev/null
+++ b/pkgs/development/python-modules/pyx/default.nix
@@ -0,0 +1,40 @@
+{stdenv, fetchurl, python, makeWrapper}:
+
+stdenv.mkDerivation rec {
+  name = "PyX-0.10";
+  src = fetchurl {
+    url = "mirror://sourceforge/pyx/${name}.tar.gz";
+    sha256 = "dfaa4a7790661d67d95f80b22044fdd8a9922483631950296ff1d7a9f85c8bba";
+  };
+
+  patchPhase = ''
+    substituteInPlace ./setup.py --replace '"/etc"' '"etc"'
+  '';
+
+  buildInputs = [python makeWrapper];
+  buildPhase = "python ./setup.py build";
+  installPhase = ''
+    python ./setup.py install --prefix="$out" || exit 1
+
+    for i in "$out/bin/"*
+    do
+      # FIXME: We're assuming Python 2.4.
+      wrapProgram "$i" --prefix PYTHONPATH :  \
+       "$out/lib/python2.4/site-packages" ||  \
+        exit 2
+    done
+  '';
+
+  meta = {
+    description = ''Python graphics package'';
+    longDescription = ''
+      PyX is a Python package for the creation of PostScript and PDF
+      files. It combines an abstraction of the PostScript drawing
+      model with a TeX/LaTeX interface. Complex tasks like 2d and 3d
+      plots in publication-ready quality are built out of these
+      primitives.
+    '';
+    license = "GPLv2";
+    homepage = http://pyx.sourceforge.net/;
+  };
+}