Add Python Numeric.

svn path=/nixpkgs/trunk/; revision=12975
This commit is contained in:
Ludovic Courtès 2008-10-06 18:56:47 +00:00
parent 9ff6ecf5dd
commit d77f3177fe
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ fetchurl, stdenv, python }:
let version = "24.2"; in
stdenv.mkDerivation {
name = "python-numeric-${version}";
src = fetchurl {
url = "mirror://sourceforge/numpy/Numeric-${version}.tar.gz";
sha256 = "0n2jy47n3d121pky4a3r0zjmk2vk66czr2x3y9179xbgxclyfwjz";
};
buildInputs = [ python ];
buildPhase = ''python setup.py build --build-base "$out"'';
installPhase = ''
python setup.py install --prefix "$out"
# Remove the `lib.linux-i686-2.5' and `temp.linux-i686-2.5' (or
# similar) directories.
rm -rf $out/lib.* $out/temp.*
'';
# FIXME: Run the tests.
meta = {
description = "Numeric, a Python module for high-performance, numeric computing";
longDescription = ''
Numeric is a Python module for high-performance, numeric
computing. It provides much of the functionality and
performance of commercial numeric software such as Matlab; it
some cases, it provides more functionality than commercial
software.
'';
license = "Python+LLNL";
homepage = http://people.csail.mit.edu/jrennie/python/numeric/;
};
}

View File

@ -4562,6 +4562,10 @@ let
setuptools = setuptools.meta.function {inherit python;};
});
numeric = import ../development/python-modules/numeric {
inherit fetchurl stdenv python;
};
pil = import ../development/python-modules/pil {
inherit fetchurl stdenv python zlib libjpeg freetype;
};