me
/
guix
Archived
1
0
Fork 0

gnu: Update python-tzlocal to 1.2.

* gnu/packages/python.scm (python-tzlocal): Update to 1.2.
[source]: Use pypi-uri.
[arguments]: Remove the custom 'unpack phase.
[native-inputs]: Remove unzip, python-setuptools.
[propagated-inputs]: Add python-pytz.
master
Leo Famulari 2015-12-29 06:11:33 -05:00
parent 6bbbb53eeb
commit 226d333103
1 changed files with 4 additions and 19 deletions

View File

@ -1014,31 +1014,16 @@ doing practical, real world data analysis in Python.")
(define-public python-tzlocal (define-public python-tzlocal
(package (package
(name "python-tzlocal") (name "python-tzlocal")
(version "1.1.1") (version "1.2")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://pypi.python.org/packages/source/t/" (uri (pypi-uri "tzlocal" version))
"tzlocal/tzlocal-" version ".zip"))
(sha256 (sha256
(base32 (base32
"1m3y918c3chf41fwg2bx4w42bqsjzn3dyvvcmwwy13c8gj6zssv9")))) "12wsw2fl3adrqrwghasld57bhqdrzn0crblqrci1p5acd0ni53s3"))))
(build-system python-build-system) (build-system python-build-system)
(native-inputs (propagated-inputs `(("python-pytz" ,python-pytz)))
`(("unzip" ,unzip)
("python-setuptools" ,python-setuptools)))
(inputs `(("python-pytz" ,python-pytz)))
(arguments
`(#:phases
(alist-replace
'unpack
(lambda _
(let ((unzip (string-append (assoc-ref %build-inputs "unzip")
"/bin/unzip"))
(source (assoc-ref %build-inputs "source")))
(and (zero? (system* unzip source))
(chdir (string-append "tzlocal-" ,version)))))
%standard-phases)))
(home-page "https://github.com/regebro/tzlocal") (home-page "https://github.com/regebro/tzlocal")
(synopsis (synopsis
"Local timezone information for Python") "Local timezone information for Python")