From 822566984a34a0d37ead11732cb69390b787f6be Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 30 Nov 2025 09:02:24 +0100 Subject: [PATCH] gnu: python-ndg-httpsclient: Switch to pyproject. * gnu/packages/python-web.scm (python-ndg-httpsclient): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools. [description]: Improve style. Change-Id: I5570ba9e5efc0abc652a25b24a89ac9f8477c8a0 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-web.scm | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 10249a9343ddf3c0ea647f98079109a23f88f772..12061ac00b7ac172a73058870f4cea007ae1a1d9 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6217,23 +6217,27 @@ deprecation warnings to be issued when a variable is used.") (package (name "python-ndg-httpsclient") (version "0.5.1") - (source (origin - (method url-fetch) - (uri (pypi-uri "ndg_httpsclient" version)) - (sha256 - (base32 - "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp")))) - (build-system python-build-system) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cedadev/ndg_httpsclient/") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0lhsgs4am4xyjssng5p0vkfwqncczj1dpa0vss4lrhzq86mnn5rz")))) + (build-system pyproject-build-system) (arguments - '(;; The tests appear to require networking. - #:tests? #f)) - (propagated-inputs - (list python-pyasn1 python-pyopenssl)) + (list + #:tests? #f)) ;Tests appear to require networking. + (native-inputs (list python-setuptools)) + (propagated-inputs (list python-pyasn1 python-pyopenssl)) (synopsis "HTTPS support for Python's httplib and urllib2") - (description "This is a HTTPS client implementation for httplib and urllib2 -based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation -over the default provided with Python and, importantly, enables full -verification of the SSL peer.") + (description + "This is a HTTPS client implementation for httplib and urllib2 based on +PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation over +the default provided with Python and, importantly, enables full verification +of the SSL peer.") (home-page "https://github.com/cedadev/ndg_httpsclient/") (license license:bsd-3)))