all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xinglu Chen <public@yoctocell.xyz>
To: Felix Gruber <felgru@posteo.net>, 50812@debbugs.gnu.org
Cc: Felix Gruber <felgru@posteo.net>, Maxime Devos <maximedevos@telenet.be>
Subject: [bug#50812] [PATCH v2 2/5] gnu: Add python-pyproj.
Date: Sun, 26 Sep 2021 22:41:13 +0200	[thread overview]
Message-ID: <87czov6pee.fsf@yoctocell.xyz> (raw)
In-Reply-To: <20210926174150.26146-3-felgru@posteo.net>

[-- Attachment #1: Type: text/plain, Size: 2609 bytes --]

On Sun, Sep 26 2021, Felix Gruber wrote:

> * gnu/packages/geo.scm (python-pyproj): New variable.
> ---
>  gnu/packages/geo.scm | 41 +++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 41 insertions(+)
>
> diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
> index c10b93d83f..ee1c9c5674 100644
> --- a/gnu/packages/geo.scm
> +++ b/gnu/packages/geo.scm
> @@ -93,6 +93,7 @@
>    #:use-module (gnu packages pulseaudio)
>    #:use-module (gnu packages python)
>    #:use-module (gnu packages python-check)
> +  #:use-module (gnu packages python-crypto)
>    #:use-module (gnu packages python-science)
>    #:use-module (gnu packages python-web)
>    #:use-module (gnu packages python-xyz)
> @@ -633,6 +634,46 @@ projections.")
>                     ;; cmake/*
>                     license:boost1.0))))
>  
> +(define-public python-pyproj
> +  (package
> +    (name "python-pyproj")
> +    (version "3.2.1")
> +    (source
> +      (origin
> +        (method url-fetch)
> +        (uri (pypi-uri "pyproj" version))
> +        (sha256
> +          (base32
> +            "0xrqpy708qlyd7nqjra0dl7nvkqzaj9w0v7wq4j5pxazha9n14sa"))))
> +    (build-system python-build-system)
> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         (add-after 'unpack 'set-proj-path
> +           (lambda* (#:key inputs #:allow-other-keys)
> +             (let ((proj (assoc-ref inputs "proj")))
> +               (setenv "PROJ_DIR" proj)
> +               (substitute* "pyproj/datadir.py"
> +                 (("(internal_datadir = ).*$" all var)
> +                  (string-append var "Path(\"" proj "/share/proj\")\n")))
> +               ))))))

These brackets should not be on their own line.

> +    (inputs
> +      `(("proj" ,proj.7)))
> +    (propagated-inputs
> +      `(("python-certifi" ,python-certifi)))
> +    (native-inputs
> +      `(("python-cython" ,python-cython)
> +        ("python-numpy" ,python-numpy)
> +        ("python-pandas" ,python-pandas)
> +        ("python-pytest" ,python-pytest)
> +        ("python-xarray" ,python-xarray)))
> +    (home-page "https://github.com/pyproj4/pyproj")
> +    (synopsis
> +      "Python interface to PROJ")
> +    (description
> +      "Python interface to PROJ (cartographic projections and coordinate transformations library)")

Please keep lines to <=80 characters.  The sentence is lacking a
subject and a period.  I suggest

  This package provides a Python interface to PROJ, a cartographic
  projections and coordinate transformations library.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

  reply	other threads:[~2021-09-26 20:42 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-26  8:52 [bug#50812] [PATCH 0/5] Add python-geopandas Felix Gruber
2021-09-26  8:57 ` [bug#50812] [PATCH 1/5] gnu: Add proj 7.2.1 Felix Gruber
2021-09-26  8:57   ` [bug#50812] [PATCH 2/5] gnu: Add python-pyproj Felix Gruber
2021-09-26  8:57   ` [bug#50812] [PATCH 3/5] gnu: Add python-cligj Felix Gruber
2021-09-26  8:57   ` [bug#50812] [PATCH 4/5] gnu: Add python-fiona Felix Gruber
2021-09-26 16:53     ` Maxime Devos
2021-09-26 16:55     ` Maxime Devos
2021-09-26  8:57   ` [bug#50812] [PATCH 5/5] gnu: Add python-geopandas Felix Gruber
2021-09-26 17:41 ` [bug#50812] [PATCH v2 0/5] " Felix Gruber
2021-09-26 17:41 ` [bug#50812] [PATCH v2 1/5] gnu: Add proj 7.2.1 Felix Gruber
2021-09-26 20:34   ` Xinglu Chen
2021-09-27 11:18     ` Felix Gruber
2021-09-27 12:36       ` Xinglu Chen
2021-09-27 12:49         ` Guillaume Le Vaillant
2021-09-28  6:26           ` Felix Gruber
2021-09-26 17:41 ` [bug#50812] [PATCH v2 2/5] gnu: Add python-pyproj Felix Gruber
2021-09-26 20:41   ` Xinglu Chen [this message]
2021-09-26 17:41 ` [bug#50812] [PATCH v2 3/5] gnu: Add python-cligj Felix Gruber
2021-09-26 17:41 ` [bug#50812] [PATCH v2 4/5] gnu: Add python-fiona Felix Gruber
2021-09-26 20:47   ` Xinglu Chen
2021-09-26 17:41 ` [bug#50812] [PATCH v2 5/5] gnu: Add python-geopandas Felix Gruber
2021-09-26 20:51   ` Xinglu Chen
2021-09-27 11:24 ` [bug#50812] [PATCH v3 0/6] " Felix Gruber
2021-09-27 11:24   ` [bug#50812] [PATCH v3 1/6] gnu: Add proj 7.2.1 Felix Gruber
2021-09-27 11:24   ` [bug#50812] [PATCH v3 2/6] gnu: Add python-pyproj Felix Gruber
2021-09-27 11:24   ` [bug#50812] [PATCH v3 3/6] gnu: Add python-cligj Felix Gruber
2021-09-27 11:24   ` [bug#50812] [PATCH v3 4/6] gnu: Add python-fiona Felix Gruber
2021-09-27 11:24   ` [bug#50812] [PATCH v3 5/6] gnu: Add python-geopandas Felix Gruber
2021-09-27 11:24   ` [bug#50812] [PATCH v3 6/6] gnu: Improve description of proj packages Felix Gruber
2021-09-28  6:34 ` [bug#50812] [PATCH v4 0/5] Add python-geopandas Felix Gruber
2021-09-28  6:34   ` [bug#50812] [PATCH v4 1/5] gnu: proj: Update to 7.2.1 Felix Gruber
2021-09-28  6:34   ` [bug#50812] [PATCH v4 2/5] gnu: Add python-pyproj Felix Gruber
2021-09-28  6:34   ` [bug#50812] [PATCH v4 3/5] gnu: Add python-cligj Felix Gruber
2021-09-28  6:34   ` [bug#50812] [PATCH v4 4/5] gnu: Add python-fiona Felix Gruber
2021-09-28  6:34   ` [bug#50812] [PATCH v4 5/5] gnu: Add python-geopandas Felix Gruber
2021-10-12 16:13   ` bug#50812: [PATCH 0/5] " Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87czov6pee.fsf@yoctocell.xyz \
    --to=public@yoctocell.xyz \
    --cc=50812@debbugs.gnu.org \
    --cc=felgru@posteo.net \
    --cc=maximedevos@telenet.be \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.