summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-12-23 16:08:50 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-28 20:51:49 +0000
commit6a39270d9b1067cd5e888ab3aeba1779e657b27f (patch)
tree7c998f456adba21f406065d8544b8788f793c320 /gnu
parent9fe7aaa20ac754da1b7cb69d95a4ba0122ef78c0 (diff)
gnu: python-publicsuffix2: Switch to pyproject.
* gnu/packages/python-web.scm (python-publicsuffix2): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Improve style, reorder keywords, use gexps. [native-inputs]: Add python-setuptools. Change-Id: Ic9e7847f465f2b13262961cc0326f0a8596101b4 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-web.scm44
1 files changed, 25 insertions, 19 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index ae40d9fd770..7cc645275dc 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -8458,30 +8458,36 @@ List.")
(define-public python-publicsuffix2
(package
(name "python-publicsuffix2")
- (version "2.20191221")
+ (version "2.2019-12-21")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "publicsuffix2" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pombredanne/python-publicsuffix2")
+ (commit (string-append "release-" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0yzysvfj1najr1mb4pcqrbmjir3xpb69rlffln95a3cdm8qwry00"))))
- (build-system python-build-system)
+ (base32 "1dkvfvl0izq9hqzilnw8ipkbgjs9xyad9p21i3864hzinbh0wp9r"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'ignore-maintainer-inputs
- (lambda _
- ;; Comment out a demand for python-requests, which is used only by
- ;; the unused ‘update_psl’ helper command.
- (substitute* "setup.py"
- (("'requests " match)
- (format #f "# ~a" match)))
- #t)))
- #:tests? #f)) ; the test suite requires network access
+ (list
+ #:tests? #f ;the test suite requires network access
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'ignore-maintainer-inputs
+ (lambda _
+ ;; Comment out a demand for python-requests, which is used only by
+ ;; the unused ‘update_psl’ helper command.
+ (substitute* "setup.py"
+ (("'requests " match)
+ (format #f "# ~a" match))))))))
+ (native-inputs (list python-setuptools))
(home-page "https://github.com/pombredanne/python-publicsuffix2")
- (synopsis "Get a public suffix for a domain name using the Public Suffix List")
- (description "Get a public suffix for a domain name using the Public Suffix
-List. Forked from and using the same API as the publicsuffix package.")
+ (synopsis
+ "Get a public suffix for a domain name using the Public Suffix List")
+ (description
+ "Get a public suffix for a domain name using the Public Suffix List.
+Forked from and using the same API as the publicsuffix package.")
(license (list license:expat license:mpl2.0))))
(define-public python-werkzeug