1{ fetchurl, stdenv, python }:
2
3let version = "24.2"; in
4 stdenv.mkDerivation {
5 name = "python-numeric-${version}";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/numpy/Numeric-${version}.tar.gz";
9 sha256 = "0n2jy47n3d121pky4a3r0zjmk2vk66czr2x3y9179xbgxclyfwjz";
10 };
11
12 buildInputs = [ python ];
13
14 buildPhase = ''python setup.py build --build-base "$out"'';
15 installPhase = ''
16 python setup.py install --prefix "$out"
17
18 # Remove the `lib.linux-i686-2.5' and `temp.linux-i686-2.5' (or
19 # similar) directories.
20 rm -rf $out/lib.* $out/temp.*
21 '';
22
23 # FIXME: Run the tests.
24
25 meta = {
26 description = "A Python module for high-performance, numeric computing";
27
28 longDescription = ''
29 Numeric is a Python module for high-performance, numeric
30 computing. It provides much of the functionality and
31 performance of commercial numeric software such as Matlab; it
32 some cases, it provides more functionality than commercial
33 software.
34 '';
35
36 license = "Python+LLNL";
37
38 homepage = http://people.csail.mit.edu/jrennie/python/numeric/;
39 };
40 }