guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 57/86] gnu: Add rust-csv.


From: ng0
Subject: [PATCH 57/86] gnu: Add rust-csv.
Date: Tue, 3 Jan 2017 23:36:13 +0000

* gnu/packages/rust.scm (rust-csv): New variable.
---
 gnu/packages/rust.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 0f6c385f0..f415c91e4 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1567,3 +1567,30 @@ description of Docopt.")
      "@code{byteorder} is a library for reading/writing numbers in
 big-endian and little-endian.")
     (license (list license:unlicense license:expat))))
+
+(define-public rust-csv
+  (package
+    (name "rust-csv")
+    (version "0.14.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "csv" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1g0qvr9fj25fq1fy0p758glrb30yz7x46h18hsysaqyaswaihv16"))))
+    (build-system cargo-build-system)
+    ;; TODO: package regex
+    ;; (native-inputs
+    ;;  `(("rust-regex" ,rust-regex "src")))
+    (inputs
+     `(("rust-byteorder" ,rust-byteorder "src")
+       ("rust-rustc-serialize" ,rust-rustc-serialize "src")))
+    (home-page "https://github.com/BurntSushi/rust-csv";)
+    (synopsis "CSV parsing with automatic type based decoding and encoding")
+    (description
+     "@code{csv} provides CSV parsing with automatic type
+based decoding and encoding.")
+    (license (list license:unlicense license:expat))))
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]