[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/07: gnu: Add python-dateparser.
From: |
guix-commits |
Subject: |
03/07: gnu: Add python-dateparser. |
Date: |
Thu, 27 Aug 2020 07:51:59 -0400 (EDT) |
mothacehe pushed a commit to branch master
in repository guix.
commit f80b800dbecd4aca2ed5ee90bfc043a15c3058cc
Author: Leo Prikler <leo.prikler@student.tugraz.at>
AuthorDate: Tue Aug 25 19:37:32 2020 +0200
gnu: Add python-dateparser.
* gnu/packages/python-xyz.scm (python-dateparser): New variable.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
gnu/packages/python-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0e50014..e32d777 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21707,3 +21707,46 @@ and have a maximum lifetime built-in.")
"This package provides a debug print command and other development tools.
It adds a simple and readable way to print stuff during development.")
(license license:expat)))
+
+(define-public python-dateparser
+ (package
+ (name "python-dateparser")
+ (version "0.7.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "dateparser" version))
+ (sha256
+ (base32
+ "1ypbyqxlk7n6zibk90js3ybz37xmin3kk0i35g8c51bwqpcfyxg8"))))
+ (build-system python-build-system)
+ (inputs
+ `(("tzdata" ,tzdata)))
+ (propagated-inputs
+ `(("python-dateutil" ,python-dateutil)
+ ("python-pytz" ,python-pytz)
+ ("python-regex" ,python-regex)
+ ("python-ruamel.yaml" ,python-ruamel.yaml)
+ ("python-tzlocal" ,python-tzlocal)))
+ (native-inputs
+ `(("python-mock" ,python-mock)
+ ("python-parameterized" ,python-parameterized)))
+ (arguments
+ `(;; TODO: Of 23320 tests, 6 fail and 53 error.
+ #:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'set-check-environment
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "TZ" "UTC")
+ (setenv "TZDIR"
+ (string-append (assoc-ref inputs "tzdata")
+ "/share/zoneinfo"))
+ #t)))))
+ (home-page "https://github.com/scrapinghub/dateparser")
+ (synopsis
+ "Date parsing library designed to parse dates from HTML pages")
+ (description
+ "@code{python-dateparser} provides modules to easily parse localized
+dates in almost any string formats commonly found on web pages.")
+ (license license:bsd-3)))
- branch master updated (41a190b -> 438c4ee), guix-commits, 2020/08/27
- 01/07: gnu: Add python-pure-protobuf., guix-commits, 2020/08/27
- 03/07: gnu: Add python-dateparser.,
guix-commits <=
- 02/07: gnu: Add python-pyparsing-2.4.7., guix-commits, 2020/08/27
- 04/07: gnu: Add python-requests-toolbelt-0.9.1., guix-commits, 2020/08/27
- 05/07: gnu: Add python-cloudscraper., guix-commits, 2020/08/27
- 07/07: gnu: Add komikku., guix-commits, 2020/08/27
- 06/07: gnu: libhandy: Update to 0.90.0., guix-commits, 2020/08/27