gnu: python-smartypants: Update to 2.0.2.

* gnu/packages/python-xyz.scm (python-smartypants): Update to 2.0.2.
  [source]: Switch to PyPI which provides source tarball as the owner of
  the project has been changed.
  [build-system]: Use pyproject.
  [arguments]: Drop them.
  [home-page]: Fix permament redirect
  from <https://github.com/leohemsted/smartypants.py>
  to   <https://github.com/justinmayer/smartypants.py>.
  [native-inputs]: Remove python-nose; add python-setuptools.

Change-Id: I12faf46dd759672d20c15e34c2df14d90a8b9b1b
This commit is contained in:
Sharlatan Hellseher 2025-07-24 11:29:59 +01:00
parent a64a34d05a
commit 9982a88654
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -35750,30 +35750,17 @@ iGoogle subscription lists.")
(define-public python-smartypants
(package
(name "python-smartypants")
(version "2.0.1")
(version "2.0.2")
(source
(origin
;; There's no source tarball for 2.0.1 on PyPI.
(method git-fetch)
(uri (git-reference
(url "https://github.com/leohemsted/smartypants.py")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(method url-fetch)
(uri (pypi-uri "smartypants" version))
(sha256
(base32 "00p1gnb9pzb3svdq3c5b9b332gsp50wrqqa39gj00m133zadanjp"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
;; Its `setup.py test` doesn't report failure with exit status, so
;; we use `nose` instead.
(lambda _
(invoke "nosetests" "-v" "--exclude=^load_tests$"))))))
(base32 "1ih0z32xfz45bpjyc27nnx8k4b613cwxyyr9k2v68sfcszhlrmir"))))
(build-system pyproject-build-system)
(native-inputs
;; For tests.
(list python-docutils python-nose python-pygments))
(home-page "https://github.com/leohemsted/smartypants.py")
(list python-docutils python-pygments python-setuptools))
(home-page "https://github.com/justinmayer/smartypants.py")
(synopsis "Translate punctuation characters into smart quotes")
(description
"@command{smartpants} can perform the following transformations: