Commit | Line | Data |
---|---|---|
233e7676 LC |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org> | |
a9f8b72e | 3 | ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org> |
5d20e1ec | 4 | ;;; Copyright © 2017 Ben Woodcroft <donttrustben@gmail.com> |
dd00e091 | 5 | ;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il> |
b147f59f | 6 | ;;; |
233e7676 | 7 | ;;; This file is part of GNU Guix. |
b147f59f | 8 | ;;; |
233e7676 | 9 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
b147f59f NK |
10 | ;;; under the terms of the GNU General Public License as published by |
11 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
12 | ;;; your option) any later version. | |
13 | ;;; | |
233e7676 | 14 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
b147f59f NK |
15 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | ;;; GNU General Public License for more details. | |
18 | ;;; | |
19 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 20 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
b147f59f | 21 | |
1ffa7090 | 22 | (define-module (gnu packages time) |
4a44e743 | 23 | #:use-module (guix licenses) |
b147f59f NK |
24 | #:use-module (guix packages) |
25 | #:use-module (guix download) | |
5d20e1ec BW |
26 | #:use-module (guix build-system gnu) |
27 | #:use-module (guix build-system python) | |
28 | #:use-module (gnu packages python)) | |
b147f59f NK |
29 | |
30 | (define-public time | |
31 | (package | |
32 | (name "time") | |
dd00e091 | 33 | (version "1.8") |
b147f59f NK |
34 | (source |
35 | (origin | |
36 | (method url-fetch) | |
37 | (uri (string-append "mirror://gnu/time/time-" | |
38 | version ".tar.gz")) | |
39 | (sha256 | |
40 | (base32 | |
dd00e091 | 41 | "06rfg8dn0q2r8pdq8i6brrs6rqrsgvkwbbl4kfx3a6lnal0m8bwa")))) |
b147f59f | 42 | (build-system gnu-build-system) |
6fd52309 | 43 | (home-page "https://www.gnu.org/software/time/") |
f50d2669 | 44 | (synopsis "Run a command, then display its resource usage") |
b147f59f | 45 | (description |
a22dc0c4 LC |
46 | "Time is a command that displays information about the resources that a |
47 | program uses. The display output of the program can be customized or saved | |
48 | to a file.") | |
c8b38f8e | 49 | (license gpl3+))) |
5d20e1ec BW |
50 | |
51 | (define-public python-pytzdata | |
52 | (package | |
53 | (name "python-pytzdata") | |
54 | (version "2017.2") | |
55 | (source | |
56 | (origin | |
57 | (method url-fetch) | |
58 | (uri (pypi-uri "pytzdata" version)) | |
59 | (sha256 | |
60 | (base32 | |
61 | "1c1az8spm2d3km6qhjy69y4dlj71p6984l48mizr83nh4f0ipld4")))) | |
62 | (build-system python-build-system) | |
63 | (native-inputs | |
64 | `(("python-pytest" ,python-pytest) | |
65 | ("python-nose" ,python-nose))) | |
66 | (home-page "https://github.com/sdispater/pytzdata") | |
67 | (synopsis "Timezone database for Python") | |
68 | (description | |
69 | "This library provides a timezone database for Python.") | |
70 | (license expat))) | |
71 | ||
72 | (define-public python2-tzdata | |
73 | (package-with-python2 python-pytzdata)) | |
89c3eaaa BW |
74 | |
75 | (define-public python-pendulum | |
76 | (package | |
77 | (name "python-pendulum") | |
78 | (version "1.2.4") | |
79 | (source | |
80 | (origin | |
81 | (method url-fetch) | |
82 | (uri (pypi-uri "pendulum" version)) | |
83 | (sha256 | |
84 | (base32 | |
85 | "1fj36yxi2f4lzchzd8ny1qjl67dbypnk0gn8qwad2w78579m8m8z")))) | |
86 | (build-system python-build-system) | |
87 | (native-inputs | |
88 | `(("python-pytest" ,python-pytest) | |
89 | ("python-nose" ,python-nose))) | |
90 | (propagated-inputs | |
91 | `(("python-dateutil" ,python-dateutil) | |
92 | ("python-pytzdata" ,python-pytzdata) | |
93 | ("python-tzlocal" ,python-tzlocal))) | |
94 | (home-page "https://github.com/sdispater/pendulum") | |
95 | (synopsis "Alternate API for Python datetimes") | |
96 | (description "Pendulum is a drop-in replacement for the standard | |
97 | @{datetime} class, providing an alternative API. As it inherits from the | |
98 | standard @code{datetime} all @code{datetime} instances can be replaced by | |
99 | Pendulum instances.") | |
100 | (license expat))) | |
101 | ||
102 | (define-public python2-pendulum | |
103 | (package-with-python2 python-pendulum)) |