| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org> |
| 3 | ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2017 Ben Woodcroft <donttrustben@gmail.com> |
| 5 | ;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il> |
| 6 | ;;; |
| 7 | ;;; This file is part of GNU Guix. |
| 8 | ;;; |
| 9 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
| 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 | ;;; |
| 14 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
| 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 |
| 20 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 21 | |
| 22 | (define-module (gnu packages time) |
| 23 | #:use-module (guix licenses) |
| 24 | #:use-module (guix packages) |
| 25 | #:use-module (guix download) |
| 26 | #:use-module (guix build-system gnu) |
| 27 | #:use-module (guix build-system python) |
| 28 | #:use-module (gnu packages python)) |
| 29 | |
| 30 | (define-public time |
| 31 | (package |
| 32 | (name "time") |
| 33 | (version "1.8") |
| 34 | (source |
| 35 | (origin |
| 36 | (method url-fetch) |
| 37 | (uri (string-append "mirror://gnu/time/time-" |
| 38 | version ".tar.gz")) |
| 39 | (sha256 |
| 40 | (base32 |
| 41 | "06rfg8dn0q2r8pdq8i6brrs6rqrsgvkwbbl4kfx3a6lnal0m8bwa")))) |
| 42 | (build-system gnu-build-system) |
| 43 | (home-page "https://www.gnu.org/software/time/") |
| 44 | (synopsis "Run a command, then display its resource usage") |
| 45 | (description |
| 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.") |
| 49 | (license gpl3+))) |
| 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)) |
| 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)) |