Verified Commit 1050a67a authored by Konrad Hinsen's avatar Konrad Hinsen Committed by Efraim Flashner
Browse files

Add python24-numpy 1.1.1

parent 92bed98f
......@@ -19,6 +19,7 @@
(define-module (past packages python)
#:use-module (guix)
#:use-module (guix git-download)
#:use-module (guix build-system python)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages maths)
......@@ -173,3 +174,57 @@ thus could not replace Numeric. Many packages of the early SciPy
ecosystem supported both Numeric and numarray, with the choice made
at build time.")
(license license:bsd-3)))
(define-public python24-numpy
(name "python24-numpy")
(version "1.1.1")
(method git-fetch)
(uri (git-reference
(url "")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(build-system python-build-system)
`(("lapack" ,lapack)
("openblas" ,openblas)))
`(#:python ,python-2.4
#:use-setuptools? #f
(modify-phases %standard-phases
(add-after 'unpack 'find-libraries
(lambda* (#:key inputs #:allow-other-keys)
(let ((lapack (assoc-ref inputs "lapack"))
(openblas (assoc-ref inputs "openblas")))
(with-output-to-file "site.cfg"
(lambda _
(format #t "[DEFAULT]
library_dirs = ~a/lib:~a/lib
include:dirs = ~a/include:~a/include~%"
lapack openblas lapack openblas))))
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
;; Taken from
(with-directory-excursion "/tmp"
(add-installed-pythonpath inputs outputs)
(invoke "python" "-c"
"import numpy; print numpy; numpy.test(level = 9999); numpy.show_config()"))))
(home-page "")
(synopsis "NumPy 1.1.1, released on 2008-07-31")
(description "NumPy is the fundamental package for scientific computing
with Python. It contains among other things: a powerful N-dimensional array
object, sophisticated (broadcasting) functions, tools for integrating C/C++
and Fortran code, useful linear algebra, Fourier transform, and random number
(properties '((release-date "2008-07-31")))
(license license:bsd-3)))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment