guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#27637] [PATCH 1/5] gnu: Add python-pytz


From: Pjotr Prins
Subject: [bug#27637] [PATCH 1/5] gnu: Add python-pytz
Date: Fri, 21 Jul 2017 07:44:18 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Definition LGTM. License is dual expat and ZPL (Zope). May want to add
that.

Part of the conda packaging effort. Please push if it is OK.

On Tue, Jul 18, 2017 at 11:37:05AM +0300, Muriithi Frederick Muriuki wrote:
> * gnu/packages/package-management.scm (python-pytz, python2-pytz): New
> * variables.
> * Add expat license.
> ---
>  gnu/packages/package-management.scm | 27 ++++++++++++++++++++++++++-
>  1 file changed, 26 insertions(+), 1 deletion(-)
> 
> diff --git a/gnu/packages/package-management.scm 
> b/gnu/packages/package-management.scm
> index d2e30781b..e8a401f1c 100644
> --- a/gnu/packages/package-management.scm
> +++ b/gnu/packages/package-management.scm
> @@ -25,7 +25,7 @@
>    #:use-module (guix utils)
>    #:use-module (guix build-system gnu)
>    #:use-module (guix build-system python)
> -  #:use-module ((guix licenses) #:select (gpl2+ gpl3+ lgpl2.1+ asl2.0))
> +  #:use-module ((guix licenses) #:select (gpl2+ gpl3+ lgpl2.1+ asl2.0 expat))
>    #:use-module (gnu packages)
>    #:use-module (gnu packages guile)
>    #:use-module (gnu packages file)
> @@ -516,3 +516,28 @@ different.  It recursively unpacks archives of many 
> kinds and transforms
>  various binary formats into more human readable forms to compare them.  It 
> can
>  compare two tarballs, ISO images, or PDFs just as easily.")
>      (license gpl3+)))
> +
> +(define-public python-pytz
> +  (package
> +    (name "python-pytz")
> +    (version "2017.2")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "pytz" version ".zip"))
> +       (sha256
> +        (base32
> +         "12cmd3j46d2gcw08bspvp6s9icfcvx88zjz52n1bli9dyvl5dh7m"))))
> +    (build-system python-build-system)
> +    (native-inputs
> +     `(("unzip" ,unzip)))
> +    (home-page "http://pythonhosted.org/pytz";)
> +    (synopsis "World timezone definitions, modern and historical")
> +    (description "This library brings the Olson tz database into Python.  It
> +allows accurate and cross platform timezone calculations using Python 2.4 or
> +higher.  It also solves the issue of ambiguous times at the end of daylight
> +saving time.  Almost all of the Olson timezones are supported.")
> +    (license expat)))
> +
> +(define-public python2-pytz
> +  (package-with-python2 python-pytz))
> -- 
> 2.13.2
> 
> 
> 
> 

-- 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]