~ruther/guix-local

32c6889aa1fbdf2615c600ba93b4550ea13bd20c — Nicolas Graves 8 months ago b746b97
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 <sharlatanus@gmail.com>
1 files changed, 20 insertions(+), 9 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +20 -9
@@ 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")