mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
e2a374799f
a worthy goal to move the Python packages that are currently in all-packages.nix into a single attribute set, but this doesn't require moving python-packages.nix or the other changes made to that file. The Python packages in all-packages.nix should simply be moved to python-packages.nix, and ideally changed to use buildPythonPackage. svn path=/nixpkgs/trunk/; revision=21196
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ 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/;
|
|
};
|
|
} |