From 32c6889aa1fbdf2615c600ba93b4550ea13bd20c Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Tue, 28 Oct 2025 15:36:14 +0100 Subject: [PATCH] gnu: python-pem: Update to 23.1.0. * gnu/packages/python-xyz.scm (python-pem): Update to 23.1.0. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:phases>: Add phase 'set-version. [native-inputs]: Add nss-certs-for-test, python-certifi, python-hatch-fancy-pypi-readme, python-hatch-vcs, python-hatchling. Remove python-sphinx. Change-Id: I097de6b515663075a8654aaadf9bcd4387cfec9b Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d45ca8c0a62d5590b696c296d95a26e313773f6c..df99b929012d6da14ce8c90e8c033ba2ce2b4611 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -30639,22 +30639,33 @@ happened, and what caused it.") (define-public python-pem (package (name "python-pem") - (version "20.1.0") + (version "23.1.0") (source (origin - (method url-fetch) - (uri (pypi-uri "pem" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/hynek/pem") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1xh88ss279fprxnzd10dczmqwjhppbyvljm33zrg2mgybwd66qr7")))) - (build-system python-build-system) + (base32 "01x14j1pliyxvcx8hlwlwfchn893ddkxxpxbyqhyh6hjyag2ammd")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-version + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) (native-inputs - (list python-certifi - python-coverage + (list nss-certs-for-test + python-certifi + python-hatch-fancy-pypi-readme + python-hatch-vcs + python-hatchling python-pretend python-pyopenssl python-pytest - python-sphinx python-twisted)) (home-page "https://pem.readthedocs.io/") (synopsis "Easy PEM file parsing in Python")