gnu: python-click-plugins: Update to 2.0.

* gnu/packages/python-xyz.scm (python-click-plugins): Update to 2.0.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Set them to run tests properly.
[native-inputs]: Add python-setuptools.
[description]: Improve style.
(python-click-plugins-1): New variable, inheriting from
python-click-plugins.

Change-Id: Ibaaccb04d5df5b9020a78e4d84598c4b5f0ab6e7
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-10-28 17:30:28 +01:00 committed by Sharlatan Hellseher
parent a40dcf2a62
commit f8ed3378cd
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -30290,24 +30290,53 @@ there are extensions that allow you to use it with other frameworks.")
(define-public python-click-plugins
(package
(name "python-click-plugins")
(version "1.1.1")
(version "2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "click-plugins" version))
(method git-fetch)
(uri (git-reference
(url "https://github.com/click-contrib/click-plugins")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0jr6bxj67vg988vkm6nz8jj98v9lg46bn49lkhak3n598jbrkas6"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-click))
(base32 "1fgfb4pv9chry7jwigc5ax66njk1w0kcj75q4kz0b8bb3nh52z2i"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-backend #~'custom
#:test-flags #~(list "tests/click_plugins_tests.py")
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'mkdir-tests
(lambda _
(mkdir "tests")
(rename-file "click_plugins_tests.py"
(string-append "tests/click_plugins_tests.py")))))))
(native-inputs (list python-pytest python-setuptools))
(propagated-inputs (list python-click))
(synopsis "Extension for Click to register external CLI commands")
(description "This package provides n extension module for Click to
register external CLI commands via setuptools entry-points.")
(description
"This package provides n extension module for Click to register external
CLI commands via setuptools entry-points.")
(home-page "https://github.com/click-contrib/click-plugins")
(license license:bsd-3)))
(define-public python-click-plugins-1
(package
(inherit python-click-plugins)
(name "python-click-plugins")
(version "1.1.1.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/click-contrib/click-plugins")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "11i93dxb6vvlqb79p8qdbcxvcsb2bb2b9lbkqhv5hs93nry02gxl"))))
(arguments (list))))
(define-public python-diceware
(package
(name "python-diceware")