~ruther/guix-exprs

c90da4fa6854d20abf0df941c887e784edbcefce — Rutherther 6 months ago d145aad
feat: add recursive python dep replacing
1 files changed, 9 insertions(+), 1 deletions(-)

M ruther/packages/python-next.scm
M ruther/packages/python-next.scm => ruther/packages/python-next.scm +9 -1
@@ 28,7 28,8 @@
  #:use-module (gnu packages python-build)
  #:use-module (gnu packages python-xyz)

  #:export (replace-python-deps))
  #:export (replace-python-deps
            replace-python-deps/recursively))

(define with-python-3.12-raw
  (package-input-rewriting `((,python . ,python-3.12))))


@@ 196,6 197,13 @@ pre-defined variants."
  (package-mapping rewrite cut?
                   #:deep? deep?))

(define* (replace-python-deps/recursively deps #:key (deep? #t))
  (if (nil? deps)
      identity
      (lambda (pkgs)
        ((replace-python-deps (list (car deps)))
         ((replace-python-deps/recursively (cdr deps)) pkgs)))))

(define with-explicit-python-3.12-single
  (package-with-explicit-python python-3.12-toolchain "python-" "python-3.12-"))


Do not follow this link