[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
60/308: gnu: Add rust-libcst-1.
From: |
guix-commits |
Subject: |
60/308: gnu: Add rust-libcst-1. |
Date: |
Wed, 4 Dec 2024 16:20:31 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 5f035708009bac756b1cfdbfe10fff2d8122140a
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Nov 28 13:43:09 2024 +0900
gnu: Add rust-libcst-1.
* gnu/packages/crates-io.scm (rust-libcst-1): New variable.
Change-Id: Ief66cbaf06a00ada6c2b497352c6143dd874cc32
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
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 4b42ddddb9..864bdcfb00 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>
@@ -39734,6 +39734,47 @@ values of all the exported APIs match the platform
that libc is compiled for.")
macros on libc without stdlib.")
(license (list license:asl2.0 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-libcst-derive-1
(package
(name "rust-libcst-derive")
- 32/308: gnu: rust-security-framework-sys-0.2: Mark as deprecated., (continued)
- 32/308: gnu: rust-security-framework-sys-0.2: Mark as deprecated., guix-commits, 2024/12/04
- 24/308: gnu: rust-env-logger-0.11: Update to 0.11.5., guix-commits, 2024/12/04
- 26/308: gnu: rust-schannel-0.1: Update to 0.1.27., guix-commits, 2024/12/04
- 21/308: gnu: rust-ipconfig-0.3: Update to 0.3.2., guix-commits, 2024/12/04
- 13/308: gnu: rust-gix-utils-0.1: Update to 0.1.13., guix-commits, 2024/12/04
- 51/308: gnu: Add rust-nucleo-matcher-0.2., guix-commits, 2024/12/04
- 53/308: gnu: Add rust-pulldown-cmark-0.11., guix-commits, 2024/12/04
- 57/308: gnu: rust-peg-runtime-0.8: Update to 0.8.3., guix-commits, 2024/12/04
- 58/308: gnu: rust-peg-0.8: Update to 0.8.4., guix-commits, 2024/12/04
- 61/308: gnu: rust-rustyline-9: Update to 9.1.2., guix-commits, 2024/12/04
- 60/308: gnu: Add rust-libcst-1.,
guix-commits <=
- 67/308: gnu: rust-any-all-workaround-0.1: Enable building., guix-commits, 2024/12/04
- 68/308: gnu: rust-encoding-rs-0.8: Update to 0.8.35., guix-commits, 2024/12/04
- 69/308: gnu: rust-fastrand-2: Update to 2.2.0., guix-commits, 2024/12/04
- 75/308: gnu: rust-macrotest-1: Update to 1.0.13., guix-commits, 2024/12/04
- 79/308: gnu: Add rust-termwiz-0.15., guix-commits, 2024/12/04
- 85/308: gnu: Add rust-windows-core-0.56., guix-commits, 2024/12/04
- 92/308: gnu: Add rust-terminal-size-0.4., guix-commits, 2024/12/04
- 96/308: gnu: rust-unicode-segmentation-1: Update to 1.12.0., guix-commits, 2024/12/04
- 95/308: gnu: Add rust-trim-in-place-0.1., guix-commits, 2024/12/04
- 110/308: gnu: rust-pest-2: Update to 2.7.14., guix-commits, 2024/12/04