From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH] gnu: Add python-netcdf4. Date: Sat, 24 Dec 2016 14:59:35 +0100 Message-ID: <87pokho2bc.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> References: <20161223.164237.19794021722833533.thomas.danckaert@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKmrN-0008V3-HG for guix-devel@gnu.org; Sat, 24 Dec 2016 08:59:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKmrK-0007yo-Dh for guix-devel@gnu.org; Sat, 24 Dec 2016 08:59:41 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:55063) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cKmrK-0007yO-95 for guix-devel@gnu.org; Sat, 24 Dec 2016 08:59:38 -0500 In-Reply-To: <20161223.164237.19794021722833533.thomas.danckaert@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Thomas Danckaert , guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Thomas Danckaert writes: > From b4b54b695e286c19332600c38d5e07fabee409f8 Mon Sep 17 00:00:00 2001 > From: Thomas Danckaert > Date: Fri, 23 Dec 2016 15:06:43 +0100 > Subject: [PATCH] gnu: Add python-netcdf4. > > * gnu/packages/python.scm (python-netcdf4): New variable. > --- > gnu/packages/python.scm | 50 +++++++++++++++++++++++++++++++++++++++++++= ++++++ > 1 file changed, 50 insertions(+) Thanks for this! The patch looks good, but the license seems to be ISC with parts covered by the expat license according to the COPYING file. Was there any particular reason you linked to the documentation? > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > index cc53f76..37ad3df 100644 > --- a/gnu/packages/python.scm > +++ b/gnu/packages/python.scm > @@ -800,6 +800,56 @@ concepts.") > (define-public python2-h5py > (package-with-python2 python-h5py)) >=20=20 > +(define-public python-netcdf4 > + (package > + (name "python-netcdf4") > + (version "1.2.6") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "netCDF4" version)) > + (sha256 > + (base32 > + "1qcymsfxsdfr4sx0vl7ih5d14z66k6c9sjy4gb6rjaksk5387zvg")))) > + (build-system python-build-system) > + (native-inputs > + `(("python-cython" ,python-cython))) > + (propagated-inputs > + `(("python-numpy" ,python-numpy))) > + (inputs > + `(("netcdf" ,netcdf) > + ("hdf4" ,hdf4) > + ("hdf5" ,hdf5))) > + (arguments > + '(#:phases > + (modify-phases %standard-phases > + (replace 'check > + (lambda _ > + (setenv "NO_NET" "1") ;; disable opendap tests > + (with-directory-excursion "test" > + (setenv "PYTHONPATH" ;; find and add the library we just = built > + (string-append > + (car (find-files "../build" "lib.*" > + #:directories? #:t > + #:fail-on-error? #:t)) > + ":" (getenv "PYTHONPATH"))) > + (zero? (system* "python" "run_all.py")))))))) > + (home-page > + "https://github.com/Unidata/netcdf4-python") > + (synopsis "Python/numpy interface to the netCDF library") > + (description "Netcdf4-python is a Python interface to the netCDF C > +library. netCDF version 4 has many features not found in earlier > +versions of the library and is implemented on top of HDF5. This module > +can read and write files in both the new netCDF 4 and the old netCDF 3 > +format, and can create files that are readable by HDF5 clients. The > +API is modelled after Scientific.IO.NetCDF, and should be familiar to > +users of that module.") > + (license > + (license:non-copyleft "https://unidata.github.io/netcdf4-python")))) > + > +(define-public python2-netcdf4 > + (package-with-python2 python-netcdf4)) > + > (define-public python-lockfile > (package > (name "python-lockfile") > --=20 > 2.7.4 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlhef0cACgkQoqBt8qM6 VPpnQgf+OWzZUQARBR8/ikHW5GacXUnXy0f/m2rvYIsYkBrLLRuF4b0oljr6M82n X3KoaHVZZCUhq+oScqRwb1jv15oTH0NuyRUAXI5gKxVdsIhtSDD+IBGCo8KVQfX9 m1gtV5svVXLHIkfx5dTDBfv5TIIPRqrnQ2ofpMPwJyNkpNrIgamphqXZur1Jwbwg J8Fa8z6LmVxb9jDwNl7xRfLYcTTU6R1weOz7ZHQyCxWmM6XE4q/t3AZdisb9bEsi MWXlzBGZq/kWal+KuTVWHoM0nTln7gnLSWkecQRRq0HH2EBleo4xrmvPLu6ZBnic eTakKDgHFV5F19mSA5md+v9zRavtOw== =xCFX -----END PGP SIGNATURE----- --=-=-=--