Commit | Line | Data |
---|---|---|
233e7676 LC |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org> | |
33dc54b0 RW |
3 | ;;; Copyright © 2013, 2017 Ludovic Courtès <ludo@gnu.org> |
4 | ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr> | |
64f925cb | 5 | ;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il> |
33dc54b0 RW |
6 | ;;; Copyright © 2015, 2017 Leo Famulari <leo@famulari.name> |
7 | ;;; Copyright © 2015, 2017 Cyril Roelandt <tipecaml@gmail.com> | |
8 | ;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com> | |
9 | ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com> | |
10 | ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org> | |
11 | ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com> | |
33fdde8d | 12 | ;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
5d20e1ec | 13 | ;;; Copyright © 2017 Ben Woodcroft <donttrustben@gmail.com> |
4a78fd46 | 14 | ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is> |
33dc54b0 | 15 | ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu> |
f8460d26 | 16 | ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com> |
b147f59f | 17 | ;;; |
233e7676 | 18 | ;;; This file is part of GNU Guix. |
b147f59f | 19 | ;;; |
233e7676 | 20 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
b147f59f NK |
21 | ;;; under the terms of the GNU General Public License as published by |
22 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
23 | ;;; your option) any later version. | |
24 | ;;; | |
233e7676 | 25 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
b147f59f NK |
26 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
27 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
28 | ;;; GNU General Public License for more details. | |
29 | ;;; | |
30 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 31 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
b147f59f | 32 | |
1ffa7090 | 33 | (define-module (gnu packages time) |
4a44e743 | 34 | #:use-module (guix licenses) |
b147f59f NK |
35 | #:use-module (guix packages) |
36 | #:use-module (guix download) | |
5d20e1ec BW |
37 | #:use-module (guix build-system gnu) |
38 | #:use-module (guix build-system python) | |
ac257f12 | 39 | #:use-module (gnu packages check) |
33dc54b0 | 40 | #:use-module (gnu packages compression) |
5d20e1ec | 41 | #:use-module (gnu packages python)) |
b147f59f NK |
42 | |
43 | (define-public time | |
44 | (package | |
45 | (name "time") | |
64f925cb | 46 | (version "1.9") |
b147f59f NK |
47 | (source |
48 | (origin | |
49 | (method url-fetch) | |
50 | (uri (string-append "mirror://gnu/time/time-" | |
51 | version ".tar.gz")) | |
52 | (sha256 | |
53 | (base32 | |
64f925cb | 54 | "07jj7cz6lc13iqrpgn81ivqh8rkm73p4rnivwgrrshk23v4g1b7v")))) |
b147f59f | 55 | (build-system gnu-build-system) |
6fd52309 | 56 | (home-page "https://www.gnu.org/software/time/") |
f50d2669 | 57 | (synopsis "Run a command, then display its resource usage") |
b147f59f | 58 | (description |
a22dc0c4 LC |
59 | "Time is a command that displays information about the resources that a |
60 | program uses. The display output of the program can be customized or saved | |
61 | to a file.") | |
c8b38f8e | 62 | (license gpl3+))) |
5d20e1ec BW |
63 | |
64 | (define-public python-pytzdata | |
65 | (package | |
66 | (name "python-pytzdata") | |
01e9bc46 | 67 | (version "2017.3.1") |
5d20e1ec BW |
68 | (source |
69 | (origin | |
70 | (method url-fetch) | |
71 | (uri (pypi-uri "pytzdata" version)) | |
72 | (sha256 | |
73 | (base32 | |
01e9bc46 | 74 | "1wi3jh39zsa9iiyyhynhj7w5b2p9wdyd0ppavpsrmf3wxvr7cwz8")))) |
5d20e1ec BW |
75 | (build-system python-build-system) |
76 | (native-inputs | |
77 | `(("python-pytest" ,python-pytest) | |
78 | ("python-nose" ,python-nose))) | |
79 | (home-page "https://github.com/sdispater/pytzdata") | |
80 | (synopsis "Timezone database for Python") | |
81 | (description | |
82 | "This library provides a timezone database for Python.") | |
83 | (license expat))) | |
84 | ||
85 | (define-public python2-tzdata | |
86 | (package-with-python2 python-pytzdata)) | |
89c3eaaa | 87 | |
33dc54b0 RW |
88 | (define-public python-pytz |
89 | (package | |
90 | (name "python-pytz") | |
01e9bc46 | 91 | (version "2017.3") |
33dc54b0 RW |
92 | (source |
93 | (origin | |
94 | (method url-fetch) | |
95 | (uri (pypi-uri "pytz" version ".zip")) | |
96 | (sha256 | |
97 | (base32 | |
01e9bc46 | 98 | "1dw5l527vcafvdqq4wadwl7ikhb2sssz0v0cssibh8890kyczr7s")))) |
33dc54b0 RW |
99 | (build-system python-build-system) |
100 | (native-inputs | |
101 | `(("unzip" ,unzip))) | |
102 | (home-page "http://pythonhosted.org/pytz") | |
103 | (synopsis "Python timezone library") | |
104 | (description "This library brings the Olson tz database into Python. It | |
105 | allows accurate and cross platform timezone calculations using Python 2.4 or | |
106 | higher. It also solves the issue of ambiguous times at the end of daylight | |
107 | saving time. Almost all of the Olson timezones are supported.") | |
108 | (license expat))) | |
109 | ||
110 | (define-public python2-pytz | |
111 | (package-with-python2 python-pytz)) | |
112 | ||
89c3eaaa BW |
113 | (define-public python-pendulum |
114 | (package | |
115 | (name "python-pendulum") | |
116 | (version "1.2.4") | |
117 | (source | |
118 | (origin | |
119 | (method url-fetch) | |
120 | (uri (pypi-uri "pendulum" version)) | |
121 | (sha256 | |
122 | (base32 | |
123 | "1fj36yxi2f4lzchzd8ny1qjl67dbypnk0gn8qwad2w78579m8m8z")))) | |
124 | (build-system python-build-system) | |
125 | (native-inputs | |
126 | `(("python-pytest" ,python-pytest) | |
127 | ("python-nose" ,python-nose))) | |
128 | (propagated-inputs | |
129 | `(("python-dateutil" ,python-dateutil) | |
130 | ("python-pytzdata" ,python-pytzdata) | |
131 | ("python-tzlocal" ,python-tzlocal))) | |
132 | (home-page "https://github.com/sdispater/pendulum") | |
133 | (synopsis "Alternate API for Python datetimes") | |
134 | (description "Pendulum is a drop-in replacement for the standard | |
135 | @{datetime} class, providing an alternative API. As it inherits from the | |
136 | standard @code{datetime} all @code{datetime} instances can be replaced by | |
137 | Pendulum instances.") | |
138 | (license expat))) | |
139 | ||
140 | (define-public python2-pendulum | |
141 | (package-with-python2 python-pendulum)) | |
33dc54b0 RW |
142 | |
143 | (define-public python-dateutil | |
144 | (package | |
145 | (name "python-dateutil") | |
f8460d26 | 146 | (version "2.6.1") |
33dc54b0 RW |
147 | (source |
148 | (origin | |
149 | (method url-fetch) | |
150 | (uri (pypi-uri "python-dateutil" version)) | |
151 | (sha256 | |
152 | (base32 | |
f8460d26 | 153 | "1jkahssf0ir5ssxc3ydbp8cpv77limn8d4s77szb2nrgl2r3h749")))) |
33dc54b0 RW |
154 | (build-system python-build-system) |
155 | (propagated-inputs | |
156 | `(("python-six" ,python-six))) | |
157 | (home-page "https://dateutil.readthedocs.io/en/stable/") | |
158 | (synopsis "Extensions to the standard datetime module") | |
159 | (description | |
160 | "The dateutil module provides powerful extensions to the standard | |
161 | datetime module, available in Python 2.3+.") | |
162 | (license bsd-3))) | |
163 | ||
164 | (define-public python2-dateutil | |
165 | (package-with-python2 python-dateutil)) | |
166 | ||
167 | (define-public python-parsedatetime | |
168 | (package | |
169 | (name "python-parsedatetime") | |
170 | (version "2.4") | |
171 | (source | |
172 | (origin | |
173 | (method url-fetch) | |
174 | (uri (pypi-uri "parsedatetime" version)) | |
175 | (sha256 | |
176 | (base32 | |
177 | "0jxqkjks7z9dn222cqgvskp4wr6d92aglinxq7pd2w4mzdc7r09x")))) | |
178 | (build-system python-build-system) | |
179 | (native-inputs | |
180 | `(("python-nose" ,python-nose) | |
181 | ("python-pyicu" ,python-pyicu) | |
182 | ("python-pytest" ,python-pytest) | |
183 | ("python-pytest-runner" ,python-pytest-runner))) | |
184 | (propagated-inputs | |
185 | `(("python-future" ,python-future))) | |
186 | (home-page "https://github.com/bear/parsedatetime/") | |
187 | (synopsis "Parse human-readable date/time text") | |
188 | (description | |
189 | "Parse human-readable date/time text.") | |
190 | (license asl2.0))) | |
191 | ||
192 | (define-public python2-parsedatetime | |
193 | (package-with-python2 python-parsedatetime)) | |
194 | ||
195 | (define-public python-tzlocal | |
196 | (package | |
197 | (name "python-tzlocal") | |
198 | (version "1.2.2") | |
199 | (source | |
200 | (origin | |
201 | (method url-fetch) | |
202 | (uri (pypi-uri "tzlocal" version)) | |
203 | (sha256 | |
204 | (base32 | |
205 | "0paj7vlsb0np8b5sp4bv64wxv7qk2piyp7xg29pkhdjwsbls9fnb")))) | |
206 | (build-system python-build-system) | |
207 | (propagated-inputs | |
208 | `(("python-pytz" ,python-pytz))) | |
209 | (home-page "https://github.com/regebro/tzlocal") | |
210 | (synopsis "Local timezone information for Python") | |
211 | (description | |
212 | "Tzlocal returns a tzinfo object with the local timezone information. | |
213 | This module attempts to fix a glaring hole in pytz, that there is no way to | |
214 | get the local timezone information, unless you know the zoneinfo name, and | |
215 | under several distributions that's hard or impossible to figure out.") | |
216 | (license cc0))) | |
217 | ||
218 | (define-public python-isodate | |
219 | (package | |
220 | (name "python-isodate") | |
221 | (version "0.5.4") | |
222 | (source | |
223 | (origin | |
224 | (method url-fetch) | |
225 | (uri (pypi-uri "isodate" version)) | |
226 | (sha256 | |
227 | (base32 | |
228 | "0cafaiwixgpxwh9dsd28qb0dbzsj6xpxjdkyk30ns91ps10mq422")))) | |
229 | (build-system python-build-system) | |
230 | (home-page "http://cheeseshop.python.org/pypi/isodate") | |
231 | (synopsis "Python date parser and formatter") | |
232 | (description | |
233 | "Python-isodate is a python module for parsing and formatting | |
234 | ISO 8601 dates, time and duration.") | |
235 | (license bsd-3))) | |
236 | ||
237 | (define-public python2-isodate | |
238 | (package-with-python2 python-isodate)) | |
239 | ||
240 | (define-public python-iso8601 | |
241 | (package | |
242 | (name "python-iso8601") | |
243 | (version "0.1.11") | |
244 | (source | |
245 | (origin | |
246 | (method url-fetch) | |
247 | (uri (pypi-uri "iso8601" version)) | |
248 | (sha256 | |
249 | (base32 | |
250 | "0c7gh3lsdjds262h0v1sqc66l7hqgfwbakn96qrhdbl0i3vm5yz8")))) | |
251 | (build-system python-build-system) | |
252 | (native-inputs | |
253 | `(("python-pytest" ,python-pytest))) | |
254 | (home-page "https://bitbucket.org/micktwomey/pyiso8601") | |
255 | (synopsis "Module to parse ISO 8601 dates") | |
256 | (description | |
257 | "This module parses the most common forms of ISO 8601 date strings (e.g. | |
258 | @code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.") | |
259 | (license expat))) | |
260 | ||
261 | (define-public python2-iso8601 | |
262 | (package-with-python2 python-iso8601)) | |
263 | ||
264 | (define-public python-monotonic | |
265 | (package | |
266 | (name "python-monotonic") | |
33fdde8d | 267 | (version "1.5") |
33dc54b0 RW |
268 | (source |
269 | (origin | |
270 | (method url-fetch) | |
db3e631d | 271 | (uri (pypi-uri "monotonic" version)) |
33dc54b0 RW |
272 | (sha256 |
273 | (base32 | |
33fdde8d | 274 | "1c6z46yb600klbfhqadyl7vq0jdjdxkm72k43ra3iw3d0xakv593")))) |
33dc54b0 | 275 | (build-system python-build-system) |
33fdde8d | 276 | (arguments '(#:tests? #f)) ; no tests |
33dc54b0 RW |
277 | (home-page "https://github.com/atdt/monotonic") |
278 | (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3") | |
279 | (description | |
280 | "This module provides a @code{monotonic()} function which returns the | |
281 | value (in fractional seconds) of a clock which never goes backwards.") | |
282 | (license asl2.0))) | |
283 | ||
284 | (define-public python2-monotonic | |
285 | (package-with-python2 python-monotonic)) | |
286 | ||
287 | (define-public python-pyrfc3339 | |
288 | (package | |
289 | (name "python-pyrfc3339") | |
0ce92d74 | 290 | (version "1.1") |
33dc54b0 RW |
291 | (source |
292 | (origin | |
293 | (method url-fetch) | |
294 | (uri (pypi-uri "pyRFC3339" version)) | |
295 | (sha256 | |
296 | (base32 | |
0ce92d74 | 297 | "06jv7ar7lpvvk0dixzwdr3wgm0g1lipxs429s2z7knwwa7hwpf41")))) |
33dc54b0 RW |
298 | (build-system python-build-system) |
299 | (propagated-inputs | |
300 | `(("python-pytz" ,python-pytz))) | |
301 | (native-inputs | |
302 | `(("python-nose" ,python-nose))) | |
303 | (home-page "https://github.com/kurtraschke/pyRFC3339") | |
304 | (synopsis "Python timestamp library") | |
305 | (description "Python library for generating and parsing RFC 3339-compliant | |
306 | timestamps.") | |
307 | (license expat))) | |
308 | ||
309 | (define-public python2-pyrfc3339 | |
310 | (package-with-python2 python-pyrfc3339)) | |
311 | ||
312 | (define-public python-arrow | |
313 | (package | |
314 | (name "python-arrow") | |
315 | (version "0.10.0") | |
316 | (source (origin | |
317 | (method url-fetch) | |
318 | (uri (pypi-uri "arrow" version)) | |
319 | (sha256 | |
320 | (base32 | |
321 | "08n7q2l69hlainds1byd4lxhwrq7zsw7s640zkqc3bs5jkq0cnc0")))) | |
322 | (build-system python-build-system) | |
323 | (native-inputs | |
324 | `(;; For testing | |
325 | ("python-chai" ,python-chai) | |
326 | ("python-simplejson" ,python-simplejson))) | |
327 | (propagated-inputs | |
328 | `(("python-dateutil" ,python-dateutil))) | |
329 | (home-page "https://github.com/crsmithdev/arrow/") | |
330 | (synopsis "Dates and times for Python") | |
331 | (description | |
332 | "Arrow is a Python library to creating, manipulating, formatting and | |
333 | converting dates, times, and timestamps. It implements and updates the | |
334 | datetime type.") | |
335 | (license asl2.0))) | |
336 | ||
337 | (define-public python2-arrow | |
338 | (package-with-python2 python-arrow)) | |
339 | ||
340 | (define-public python-aniso8601 | |
341 | (package | |
342 | (name "python-aniso8601") | |
343 | (version "1.3.0") | |
344 | (source | |
345 | (origin | |
346 | (method url-fetch) | |
347 | (uri (pypi-uri "aniso8601" version)) | |
348 | (sha256 | |
349 | (base32 | |
350 | "1waj54iv3n3lw1fapbz8a93yjgrybgpc86wif5baxdh1arpj9df3")))) | |
351 | (build-system python-build-system) | |
352 | (propagated-inputs | |
353 | `(("python-dateutil" ,python-dateutil))) | |
354 | (home-page "https://bitbucket.org/nielsenb/aniso8601") | |
355 | (synopsis "Python library for parsing ISO 8601 strings") | |
356 | (description | |
357 | "This package contains a library for parsing ISO 8601 datetime strings.") | |
358 | (license bsd-3))) | |
359 | ||
360 | (define-public python2-aniso8601 | |
361 | (package-with-python2 python-aniso8601)) |