From c08e55df4cc5925c5881863dd6973eca401dc25e Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Tue, 12 Aug 2025 15:32:10 +0200 Subject: [PATCH] gnu: python-parsedatetime: Switch to pyproject. * gnu/packages/time.scm (python-parsedatetime): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools, python-wheel. Remove python-nose, python-pytest-runner. [description]: Improve it. Change-Id: Ib513ada340e504ea5b35297947e598641f0db2a7 Signed-off-by: Sharlatan Hellseher --- gnu/packages/time.scm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm index 2fe41d1358..3ec115f318 100644 --- a/gnu/packages/time.scm +++ b/gnu/packages/time.scm @@ -411,20 +411,23 @@ business day calculation.") (version "2.6") (source (origin - (method url-fetch) - (uri (pypi-uri "parsedatetime" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/bear/parsedatetime") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "0mfl0ixshqkwx7z5siaib7ix5j2iahb1jqfpyhqp42wan7xnicsc")))) - (build-system python-build-system) + (base32 "001rxkawjjjffbqzjg96znkhj4z6q7ky349rldd8yx6vk8cgdc2m")))) + (build-system pyproject-build-system) (native-inputs - (list python-nose python-pyicu python-pytest python-pytest-runner)) + (list python-pyicu python-pytest python-setuptools python-wheel)) (propagated-inputs (list python-future)) (home-page "https://github.com/bear/parsedatetime/") (synopsis "Parse human-readable date/time text") (description - "Parse human-readable date/time text.") + "This package provides some tools to parse human-readable date/time text +in Python.") (license asl2.0))) (define-public python-ciso8601