* 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