summaryrefslogtreecommitdiff
path: root/gnu/packages/version-control.scm
diff options
context:
space:
mode:
authorAnderson Torres <anderson.torres.8519@gmail.com>2026-06-20 19:19:07 -0300
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-07-07 22:02:35 +0200
commit278fa8cf8eb061f9639944fccccf43c3093a44ef (patch)
treec2fe2745084786cc9989f83a7f81f50259fd528f /gnu/packages/version-control.scm
parentdb1ec52ef41c1d87c49661ab7c301df0dd7a0030 (diff)
gnu: b4: Cleanup code.
* gnu/packages/version-control.scm (b4): Cleanup. [arguments]: Indent. <#:phases>: Update comment about sanity-check deletion. [home-page]: Update. Change-Id: I07b8f14740a81b1bcae76cfd36e4def2c7710363 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages/version-control.scm')
-rw-r--r--gnu/packages/version-control.scm37
1 files changed, 21 insertions, 16 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index e0d9a55ba86..20c2bd72c39 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -3938,20 +3938,24 @@ email header.")
3938 "1xxrdh0pr7yml83xdk0x20dqrnmwkhvhjkqwk16d41kxx0p391zr")))) 3938 "1xxrdh0pr7yml83xdk0x20dqrnmwkhvhjkqwk16d41kxx0p391zr"))))
3939 (build-system pyproject-build-system) 3939 (build-system pyproject-build-system)
3940 (arguments 3940 (arguments
3941 (list #:tests? (not (%current-target-system)) ;git path hardcoded. 3941 (list
3942 #:phases 3942 #:tests? (not (%current-target-system)) ; git path is hardcoded.
3943 #~(modify-phases %standard-phases 3943 #:phases
3944 ;; XXX: dnspython attempts to read /etc/resolv.conf when loading 3944 #~(modify-phases %standard-phases
3945 ;; resolver.py, which breaks the sanity check in dependent 3945 ;; INFO: phase `sanity-check' fails with the following message:
3946 ;; packages. This should rather be fixed in dnspython. 3946 ;; . . .
3947 (delete 'sanity-check) 3947 ;; ...checking requirements: ERROR: b4==<version>
3948 ;; This ensures git is present when called. 3948 ;; DistributionNotFound(Requirement.parse('git-filter-repo<3.0,>=2.30'),
3949 (add-after 'unpack 'hardcode-git-bin 3949 ;; {'b4'})
3950 (lambda* (#:key inputs #:allow-other-keys) 3950 ;; This should rather be fixed in git-filter-repo.
3951 (substitute* (find-files "src/b4" "\\.py$") 3951 (delete 'sanity-check)
3952 (("\\['git'") 3952 ;; This ensures git is present when called.
3953 (string-append 3953 (add-after 'unpack 'hardcode-git-bin
3954 "['" (search-input-file inputs "bin/git") "'")))))))) 3954 (lambda* (#:key inputs #:allow-other-keys)
3955 (substitute* (find-files "src/b4" "\\.py$")
3956 (("\\['git'")
3957 (string-append
3958 "['" (search-input-file inputs "bin/git") "'"))))))))
3955 (inputs 3959 (inputs
3956 (list git-filter-repo 3960 (list git-filter-repo
3957 git-minimal 3961 git-minimal
@@ -3960,8 +3964,9 @@ email header.")
3960 python-dnspython 3964 python-dnspython
3961 python-requests)) 3965 python-requests))
3962 (native-inputs 3966 (native-inputs
3963 (list python-pytest python-setuptools)) 3967 (list python-pytest
3964 (home-page "https://git.kernel.org/pub/scm/utils/b4/b4.git") 3968 python-setuptools))
3969 (home-page "https://b4.docs.kernel.org/en/latest/")
3965 (synopsis "Tool for working with patches in public-inbox archives") 3970 (synopsis "Tool for working with patches in public-inbox archives")
3966 (description 3971 (description
3967 "The @code{b4} command is designed to make it easier to participate in 3972 "The @code{b4} command is designed to make it easier to participate in