summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Ignatev <valentignatev@gmail.com>2020-01-26 02:03:55 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-02-25 16:48:58 +0200
commitd3237cd302ea9fb563336515e4cc2c4fe056437e (patch)
tree80d4c217d63d3df783fa67eed26db677a2f1bc09
parent2a7524304201da4a22eb007e310584b6e278b751 (diff)
gnu: Add rust-regex-0.1 and its cyclic dependencies.
* gnu/packages/crates-io.scm (rust-regex-0.1, rust-aho-corasick-0.5, rust-byteorder-0.5, rust-csv-0.14, rust-docopt-0.6, rust-memchr-0.1, rust-utf8-ranges-0.1): New variables. (rust-env-logger-0.3)[arguments]: Add missing input. (rust-quickcheck-0.2)[arguments]: Don't skip build. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r--gnu/packages/crates-io.scm159
1 files changed, 156 insertions, 3 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 790425931d..37b05db568 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -191,6 +191,31 @@ Rust, using gimli.")
("rust-serde" ,rust-serde-1.0)
("rust-serde-derive" ,rust-serde-derive-1.0))))))
+(define-public rust-aho-corasick-0.5
+ (package
+ (inherit rust-aho-corasick-0.6)
+ (name "rust-aho-corasick")
+ (version "0.5.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "aho-corasick" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0rnvdmlajikq0i4zdy1p3pv699q6apvsxfc7av7byhppllp2r5ya"))))
+ (arguments
+ `(#:cargo-inputs
+ (("rust-memchr" ,rust-memchr-0.1))
+ #:cargo-development-inputs
+ (("rust-csv" ,rust-csv-0.14)
+ ("rust-docopt" ,rust-docopt-0.6)
+ ("rust-memmap" ,rust-memmap-0.2)
+ ("rust-quickcheck" ,rust-quickcheck-0.2)
+ ("rust-rand" ,rust-rand-0.3)
+ ("rust-rustc-serialize" ,rust-rustc-serialize-0.3))))))
+
(define-public rust-android-glue-0.2
(package
(name "rust-android-glue")
@@ -1443,6 +1468,26 @@ in a byte slice, fast.")
little-endian.")
(license (list license:expat license:unlicense))))
+(define-public rust-byteorder-0.5
+ (package
+ (inherit rust-byteorder-1.3)
+ (name "rust-byteorder")
+ (version "0.5.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "byteorder" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0ma8pkyz1jbglr29m1yzlc9ghmv6672nvsrn7zd0yn5jqs60xh8g"))))
+ (arguments
+ `(#:tests? #f
+ #:cargo-development-inputs
+ (("rust-quickcheck" ,rust-quickcheck-0.2)
+ ("rust-rand" ,rust-rand-0.3))))))
+
(define-public rust-bytes-0.4
(package
(name "rust-bytes")
@@ -3014,6 +3059,27 @@ Code} (MAC) algorithms.")
"Fast CSV parsing with support for serde.")
(license (list license:unlicense license:expat))))
+(define-public rust-csv-0.14
+ (package
+ (inherit rust-csv-1.1)
+ (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"))))
+ (arguments
+ `(#:cargo-inputs
+ (("rust-byteorder" ,rust-byteorder-0.5)
+ ("rust-rustc-serialize" ,rust-rustc-serialize-0.3))
+ #:cargo-development-inputs
+ (("rust-regex" ,rust-regex-0.1))))))
+
(define-public rust-csv-core-0.1
(package
(name "rust-csv-core")
@@ -3608,6 +3674,27 @@ from macros.")
("rust-rustc-serialize" ,rust-rustc-serialize-0.3)
("rust-strsim" ,rust-strsim-0.6))))))
+(define-public rust-docopt-0.6
+ (package
+ (inherit rust-docopt-0.7)
+ (name "rust-docopt")
+ (version "0.6.86")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "docopt" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1nf4f4zf5yk0d0l4kl7hkii4na22fhn0l2hgfb46yzv08l2g6zja"))))
+ (arguments
+ `(#:cargo-inputs
+ (("rust-lazy-static" ,rust-lazy-static-0.2)
+ ("rust-regex" ,rust-regex-0.1)
+ ("rust-rustc-serialize" ,rust-rustc-serialize-0.3)
+ ("rust-strsim" ,rust-strsim-0.5))))))
+
(define-public rust-downcast-rs-1.1
(package
(name "rust-downcast-rs")
@@ -4149,7 +4236,7 @@ is configured via an environment variable.")
(arguments
`(#:skip-build? #t ; Cannot find dependent crates.
#:cargo-inputs
- (;("rust-regex" ,rust-regex-0.1)
+ (("rust-regex" ,rust-regex-0.1)
("rust-log" ,rust-log-0.3))))))
(define-public rust-envmnt-0.6
@@ -8428,6 +8515,27 @@ for searching bytes.")
(base32
"0yjyja34pzhipdl855q3m21w1lyih4lw79x2dp3czwdla4pap3ql"))))))
+(define-public rust-memchr-0.1
+ (package
+ (inherit rust-memchr-1.0)
+ (name "rust-memchr")
+ (version "0.1.11")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "memchr" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "084d85hjfa3xf5kwdms2mhbkh78m1gl2254cp5swcxj3a7xjkdnq"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-libc" ,rust-libc-0.2))
+ #:cargo-development-inputs
+ (("rust-quickcheck" ,rust-quickcheck-0.2))))))
+
(define-public rust-memmap-0.7
(package
(name "rust-memmap")
@@ -11766,8 +11874,7 @@ integers, floats, tuples, booleans, lists, strings, options and results.")
`(#:cargo-inputs
(("rust-env-logger" ,rust-env-logger-0.3)
("rust-log" ,rust-log-0.3)
- ("rust-rand" ,rust-rand-0.3))
- #:skip-build? #t)))) ; Package needs 'unicode' crate.
+ ("rust-rand" ,rust-rand-0.3))))))
(define-public rust-quickcheck-macros-0.8
(package
@@ -12929,6 +13036,34 @@ uses finite automata and guarantees linear time matching on all inputs.")
("rust-quickcheck" ,rust-quickcheck-0.6)
("rust-rand" ,rust-rand-0.4))))))
+(define-public rust-regex-0.1
+ (package
+ (inherit rust-regex-0.2)
+ (name "rust-regex")
+ (version "0.1.80")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "regex" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0bs036h3vzc6pj5jj4vc909s9rppq7b808ic99qn0y6gm3karm2g"))))
+ (arguments
+ `(#:skip-build? #t ; Can't find dependent crates.
+ #:cargo-inputs
+ (("rust-aho-corasick" ,rust-aho-corasick-0.5)
+ ("rust-memchr" ,rust-memchr-0.1)
+ ("rust-regex-syntax" ,rust-regex-syntax-0.3)
+ ("rust-simd" ,rust-simd-0.2) ; 0.1?
+ ("rust-thread-local" ,rust-thread-local-0.2)
+ ("rust-utf8-ranges" ,rust-utf8-ranges-0.1))
+ #:cargo-development-inputs
+ (("rust-lazy-static" ,rust-lazy-static-0.1)
+ ("rust-quickcheck" ,rust-quickcheck-0.2)
+ ("rust-rand" ,rust-rand-0.3))))))
+
(define-public rust-regex-automata-0.1
(package
(name "rust-regex-automata")
@@ -17789,6 +17924,24 @@ Unix users and groups.")
"Convert ranges of Unicode codepoints to UTF-8 byte ranges.")
(license (list license:expat license:unlicense))))
+(define-public rust-utf8-ranges-0.1
+ (package
+ (inherit rust-utf8-ranges-1.0)
+ (name "rust-utf8-ranges")
+ (version "0.1.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "utf8-ranges" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "03xf604b2v51ag3jgzw92l97xnb10kw9zv948bhc7ja1ik017jm1"))))
+ (arguments
+ `(#:cargo-development-inputs
+ (("rust-quickcheck" ,rust-quickcheck-0.2))))))
+
(define-public rust-utf8parse-0.1
(package
(name "rust-utf8parse")