gnu: python-dateparser: Update to 1.1.3.

* gnu/packages/python-xyz.scm (python-dateparser): Update to 1.1.3.
[build-system]: Use pyproject-build-system.
[native-inputs]: Add ‘python-flake8’.  Remove ‘python-mock’.
[arguments]<#:tests?>: Remove argument.
<#:phases>: Add ‘delete-failing-tests’.
This commit is contained in:
Liliana Marie Prikler 2022-11-05 08:07:58 +01:00
parent 2f4071b0b2
commit 5aa22d6ff9
No known key found for this signature in database
GPG Key ID: 442A84B8C70E2F87

View File

@ -27127,31 +27127,37 @@ It adds a simple and readable way to print stuff during development.")
(define-public python-dateparser (define-public python-dateparser
(package (package
(name "python-dateparser") (name "python-dateparser")
(version "0.7.6") (version "1.1.3")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "dateparser" version)) (uri (pypi-uri "dateparser" version))
(sha256 (sha256
(base32 (base32
"1ypbyqxlk7n6zibk90js3ybz37xmin3kk0i35g8c51bwqpcfyxg8")))) "19fbgq1zrwx10kljmdbs3p0y2m2xsgww20pqzw4kv6161zipsymf"))))
(build-system python-build-system) (build-system pyproject-build-system)
(propagated-inputs (propagated-inputs
(list python-dateutil python-pytz python-regex python-ruamel.yaml (list python-dateutil python-pytz python-regex python-ruamel.yaml
python-tzlocal)) python-tzlocal))
(native-inputs (native-inputs
(list python-mock python-parameterized tzdata-for-tests)) (list python-flake8 python-pytest python-parameterized tzdata-for-tests))
(arguments (arguments
`(;; TODO: Of 23320 tests, 6 fail and 53 error. `(#:phases
#:tests? #f
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'check 'set-check-environment (add-before 'check 'set-check-environment
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(setenv "TZ" "UTC") (setenv "TZ" "UTC")
(setenv "TZDIR" (setenv "TZDIR"
(search-input-directory inputs (search-input-directory inputs
"share/zoneinfo"))))))) "share/zoneinfo"))))
(add-before 'check 'delete-failing-tests
(lambda _
(with-directory-excursion "tests"
(for-each delete-file
'("test_dateparser_data_integrity.py"
"test_hijri.py"
"test_jalali.py"
"test_language_detect.py"))))))))
(home-page "https://github.com/scrapinghub/dateparser") (home-page "https://github.com/scrapinghub/dateparser")
(synopsis (synopsis
"Date parsing library designed to parse dates from HTML pages") "Date parsing library designed to parse dates from HTML pages")