+(define-public rust-postgres-0.15
+ (package
+ (name "rust-postgres")
+ (version "0.15.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "postgres" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1id6jb56jack7kxivpp3rnjjmkmymmxqadf0h0smgbsixy8dwp8i"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-bytes" ,rust-bytes-0.4)
+ ("rust-fallible-iterator" ,rust-fallible-iterator-0.1)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-native-tls" ,rust-native-tls-0.1)
+ ("rust-openssl" ,rust-openssl-0.9)
+ ("rust-postgres-protocol" ,rust-postgres-protocol-0.3)
+ ("rust-postgres-shared" ,rust-postgres-shared-0.4)
+ ("rust-rustc-serialize" ,rust-rustc-serialize-0.3)
+ ("rust-schannel" ,rust-schannel-0.1)
+ ("rust-security-framework" ,rust-security-framework-0.1)
+ ("rust-socket2" ,rust-socket2-0.3))))
+ (home-page "https://github.com/sfackler/rust-postgres")
+ (synopsis "Native, synchronous PostgreSQL client")
+ (description
+ "This package provides a native, synchronous PostgreSQL client.")
+ (license license:expat)))
+
+(define-public rust-postgres-protocol-0.3
+ (package
+ (name "rust-postgres-protocol")
+ (version "0.3.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "postgres-protocol" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "04kkznbhwspfn0hdja3jsv37l6g5gz7a625z8yra325zamjfd1r4"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-base64" ,rust-base64-0.6)
+ ("rust-byteorder" ,rust-byteorder-1)
+ ("rust-bytes" ,rust-bytes-0.4)
+ ("rust-fallible-iterator" ,rust-fallible-iterator-0.1)
+ ("rust-generic-array" ,rust-generic-array-0.9)
+ ("rust-hmac" ,rust-hmac-0.5)
+ ("rust-md5" ,rust-md5-0.3)
+ ("rust-memchr" ,rust-memchr-1)
+ ("rust-rand" ,rust-rand-0.3)
+ ("rust-sha2" ,rust-sha2-0.7)
+ ("rust-stringprep" ,rust-stringprep-0.1))))
+ (home-page "https://github.com/sfackler/rust-postgres")
+ (synopsis "Low level Postgres protocol APIs")
+ (description
+ "This package provides low level Postgres protocol APIs.")
+ (license (list license:expat license:asl2.0))))
+
+(define-public rust-postgres-shared-0.4
+ (package
+ (name "rust-postgres-shared")
+ (version "0.4.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "postgres-shared" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0vzk1njkqkd2xxz34jnax29z4179ni4j3f534i6416q2w2rkbb7z"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-bit-vec" ,rust-bit-vec-0.4)
+ ("rust-chrono" ,rust-chrono-0.4)
+ ("rust-eui48" ,rust-eui48-0.3)
+ ("rust-fallible-iterator" ,rust-fallible-iterator-0.1)
+ ("rust-geo" ,rust-geo-0.4)
+ ("rust-hex" ,rust-hex-0.2)
+ ("rust-phf" ,rust-phf-0.7)
+ ("rust-postgres-protocol" ,rust-postgres-protocol-0.3)
+ ("rust-rustc-serialize" ,rust-rustc-serialize-0.3)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-time" ,rust-time-0.1)
+ ("rust-uuid" ,rust-uuid-0.5))))
+ (home-page "https://github.com/sfackler/rust-postgres")
+ (synopsis
+ "Internal crate used by @code{postgres} and @code{postgres-tokio}")
+ (description
+ "This is an internal crate used by @code{postgres} and
+@code{postgres-tokio}.")
+ (license license:expat)))
+