gnu: python-ghp-import: Update to 2.1.0.

* gnu/packages/version-control.scm (python-ghp-import): Update to 2.1.0.
[source]: Update URL, permanent redirects.
[build-system]: Switch to pyproject.
[arguments]: Switch to gexps.
<#:tests?>: Disables tests, do not exist in PyPI or Git.
[native-inputs]: Add python-setuptools.
[home-page]: Update URL.

Change-Id: Ie0fa5bfe05919598b669c5048f671a788d000662
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Hugo Buddelmeijer 2025-12-17 19:50:29 +01:00 committed by Sharlatan Hellseher
parent a52bd8449b
commit 2ede88e3bc
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1897,19 +1897,22 @@ repository")
(define-public python-ghp-import
(package
(name "python-ghp-import")
(version "2.0.2")
(version "2.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/davisp/ghp-import")
(url "https://github.com/c-w/ghp-import")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0i4lxsgqri1y8sw4k44bkwbzmdmk4vpmdi882mw148j8gk4i7vvj"))))
(build-system python-build-system)
(base32 "1v6kay6yr8sz0601ib8lrvbgpxslhll20b28i04bdwj1f1cjygy4"))))
(build-system pyproject-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(list
#:tests? #f ;no tests, also not in Git
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'install-documentation
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
@ -1917,8 +1920,10 @@ repository")
(licenses (string-append out "/share/licenses")))
(install-file "README.md" doc)
(install-file "LICENSE" licenses)))))))
(native-inputs
(list python-setuptools))
(propagated-inputs (list python-dateutil))
(home-page "https://github.com/davisp/ghp-import")
(home-page "https://github.com/c-w/ghp-import")
(synopsis "Copy directory to the gh-pages branch")
(description "Script that copies a directory to the gh-pages branch (by
default) of the repository.")