all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 74558@debbugs.gnu.org
Cc: Maxim Cournoyer <maxim.cournoyer@gmail.com>,
	Maxim Cournoyer <maxim.cournoyer@gmail.com>,
	Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#74558] [PATCH rust-team 5/5] gnu: Add rust-libcst-1.
Date: Thu, 28 Nov 2024 13:43:09 +0900	[thread overview]
Message-ID: <569c3db564d88bf17eba472eb38565f434194296.1732714840.git.maxim.cournoyer@gmail.com> (raw)
In-Reply-To: <cover.1732714840.git.maxim.cournoyer@gmail.com>

* gnu/packages/crates-io.scm (rust-libcst-1): New variable.

Change-Id: Ief66cbaf06a00ada6c2b497352c6143dd874cc32
---
 gnu/packages/crates-io.scm | 43 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 42 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 401a20f239..e204e5df60 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -12,7 +12,7 @@
 ;;; Copyright © 2020 André Batista <nandre@riseup.net>
 ;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
 ;;; Copyright © 2020 Antoine Côté <antoine.cote@posteo.net>
-;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2021-2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2021 aecepoglu <aecepoglu@fastmail.fm>
 ;;; Copyright © 2021, 2022 Zheng Junjie <873216071@qq.com>
 ;;; Copyright © 2021 Alexandru-Sergiu Marton <brown121407@posteo.ro>
@@ -39675,6 +39675,47 @@ (define-public rust-libcst-derive-1
     (description "This package provides Proc macro helpers for libcst.")
     (license license:expat)))
 
+(define-public rust-libcst-1
+  (package
+    (name "rust-libcst")
+    (version "1.5.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libcst" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0xdh02bz1gm9hlpz02r7mk90zk3ki74pypsama33vflck9bn0gps"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags
+       (list "--release" "--"
+             ;; The roundtrip_fixtures fail due to a missing file in the crate
+             ;; (see: https://github.com/Instagram/LibCST/issues/1249).
+             "--skip=roundtrip_fixtures")
+       #:cargo-inputs (("rust-chic" ,rust-chic-1)
+                       ("rust-libcst-derive" ,rust-libcst-derive-1)
+                       ("rust-memchr" ,rust-memchr-2)
+                       ("rust-paste" ,rust-paste-1)
+                       ("rust-peg" ,rust-peg-0.8)
+                       ("rust-pyo3" ,rust-pyo3-0.20)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-thiserror" ,rust-thiserror-1))
+       #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.5)
+                                   ("rust-difference" ,rust-difference-2)
+                                   ("rust-itertools" ,rust-itertools-0.13)
+                                   ("rust-rayon" ,rust-rayon-1))
+       #:phases (modify-phases %standard-phases
+                  ;; Avoid keeping a reference to python-minimal in a test
+                  ;; file installed as source.
+                  (delete 'patch-source-shebangs))))
+    (native-inputs (list python-minimal))
+    (home-page "https://github.com/Instagram/LibCST")
+    (synopsis "Python parser and Concrete Syntax Tree library.")
+    (description
+     "This package provides a Python parser and Concrete Syntax Tree library.")
+    (license (list license:expat license:psfl))))
+
 (define-public rust-libdbus-sys-0.2
   (package
     (name "rust-libdbus-sys")
-- 
2.46.0





      parent reply	other threads:[~2024-11-28  4:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-27 13:43 [bug#74558] [PATCH rust-team 0/5] Add rust-libcst and dependencies Maxim Cournoyer
2024-11-28  4:43 ` [bug#74558] [PATCH rust-team 1/5] gnu: rust-peg-macros-0.8: Update to 0.8.4 Maxim Cournoyer
2024-11-28  4:43 ` [bug#74558] [PATCH rust-team 2/5] gnu: rust-peg-runtime-0.8: Update to 0.8.3 Maxim Cournoyer
2024-11-28  4:43 ` [bug#74558] [PATCH rust-team 3/5] gnu: rust-peg-0.8: Update to 0.8.4 Maxim Cournoyer
2024-11-28  4:43 ` [bug#74558] [PATCH rust-team 4/5] gnu: Add rust-libcst-derive-1 Maxim Cournoyer
2024-11-28  4:43 ` Maxim Cournoyer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=569c3db564d88bf17eba472eb38565f434194296.1732714840.git.maxim.cournoyer@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=74558@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.