;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2021 Nicolas Goaziou ;;; Copyright © 2021, 2023, 2024 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . ;;; ;;; Please: Try to add new module packages in alphabetic order. ;;; (define-module (gnu packages crates-database) #:use-module (guix build-system cargo) #:use-module (guix download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix utils) #:use-module (gnu packages crates-io) #:use-module (gnu packages sqlite)) (define-public rust-rusqlite-0.32 (package (name "rust-rusqlite") (version "0.32.1") (source (origin (method url-fetch) (uri (crate-uri "rusqlite" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0vlx040bppl414pbjgbp7qr4jdxwszi9krx0m63zzf2f2whvflvp")))) (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-2) ("rust-chrono" ,rust-chrono-0.4) ("rust-csv" ,rust-csv-1) ("rust-fallible-iterator" ,rust-fallible-iterator-0.3) ("rust-fallible-streaming-iterator" ,rust-fallible-streaming-iterator-0.1) ("rust-hashlink" ,rust-hashlink-0.9) ("rust-libsqlite3-sys" ,rust-libsqlite3-sys-0.30) ("rust-rusqlite-macros" ,rust-rusqlite-macros-0.3) ("rust-serde-json" ,rust-serde-json-1) ("rust-smallvec" ,rust-smallvec-1) ("rust-time" ,rust-time-0.3) ("rust-url" ,rust-url-2) ("rust-uuid" ,rust-uuid-1)) #:cargo-development-inputs (("rust-bencher" ,rust-bencher-0.1) ("rust-doc-comment" ,rust-doc-comment-0.3) ("rust-lazy-static" ,rust-lazy-static-1) ("rust-regex" ,rust-regex-1) ("rust-tempfile" ,rust-tempfile-3) ("rust-unicase" ,rust-unicase-2) ("rust-uuid" ,rust-uuid-1)))) (inputs (list sqlite)) (home-page "https://github.com/rusqlite/rusqlite") (synopsis "Wrapper for SQLite") (description "This crate provides a wrapper for SQLite.") (license license:expat))) (define-public rust-rusqlite-0.31 (package (inherit rust-rusqlite-0.32) (name "rust-rusqlite") (version "0.31.0") (source (origin (method url-fetch) (uri (crate-uri "rusqlite" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1bic69apqidimqf8gm80b98a832qzl9x6ns8myzah4yjg2ifnf5q")))) (arguments `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-2) ("rust-chrono" ,rust-chrono-0.4) ("rust-csv" ,rust-csv-1) ("rust-fallible-iterator" ,rust-fallible-iterator-0.3) ("rust-fallible-streaming-iterator" ,rust-fallible-streaming-iterator-0.1) ("rust-hashlink" ,rust-hashlink-0.9) ("rust-libsqlite3-sys" ,rust-libsqlite3-sys-0.28) ("rust-rusqlite-macros" ,rust-rusqlite-macros-0.2) ("rust-serde-json" ,rust-serde-json-1) ("rust-smallvec" ,rust-smallvec-1) ("rust-time" ,rust-time-0.3) ("rust-url" ,rust-url-2) ("rust-uuid" ,rust-uuid-1)) #:cargo-development-inputs (("rust-bencher" ,rust-bencher-0.1) ("rust-doc-comment" ,rust-doc-comment-0.3) ("rust-lazy-static" ,rust-lazy-static-1) ("rust-regex" ,rust-regex-1) ("rust-tempfile" ,rust-tempfile-3) ("rust-unicase" ,rust-unicase-2) ("rust-uuid" ,rust-uuid-1)))))) (define-public rust-rusqlite-0.30 (package (inherit rust-rusqlite-0.31) (name "rust-rusqlite") (version "0.30.0") (source (origin (method url-fetch) (uri (crate-uri "rusqlite" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0kgjk7h53wp8k2di2j83ivf50f0bk6rg7bq8j36ygxb42lb4d057")))) (arguments `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-2) ("rust-chrono" ,rust-chrono-0.4) ("rust-csv" ,rust-csv-1) ("rust-fallible-iterator" ,rust-fallible-iterator-0.3) ("rust-fallible-streaming-iterator" ,rust-fallible-streaming-iterator-0.1) ("rust-hashlink" ,rust-hashlink-0.8) ("rust-libsqlite3-sys" ,rust-libsqlite3-sys-0.27) ("rust-rusqlite-macros" ,rust-rusqlite-macros-0.1) ("rust-serde-json" ,rust-serde-json-1) ("rust-smallvec" ,rust-smallvec-1) ("rust-time" ,rust-time-0.3) ("rust-url" ,rust-url-2) ("rust-uuid" ,rust-uuid-1)) #:cargo-development-inputs (("rust-bencher" ,rust-bencher-0.1) ("rust-doc-comment" ,rust-doc-comment-0.3) ("rust-lazy-static" ,rust-lazy-static-1) ("rust-regex" ,rust-regex-1) ("rust-tempfile" ,rust-tempfile-3) ("rust-unicase" ,rust-unicase-2) ("rust-uuid" ,rust-uuid-1)))))) (define-public rust-rusqlite-0.29 (package (inherit rust-rusqlite-0.30) (name "rust-rusqlite") (version "0.29.0") (source (origin (method url-fetch) (uri (crate-uri "rusqlite" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1wj12rmwa8g0bfhsk307fl84k0xcw8ji872xx3k447apdl1rv6sl")))) (arguments `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-2) ("rust-chrono" ,rust-chrono-0.4) ("rust-csv" ,rust-csv-1) ("rust-fallible-iterator" ,rust-fallible-iterator-0.2) ("rust-fallible-streaming-iterator" ,rust-fallible-streaming-iterator-0.1) ("rust-hashlink" ,rust-hashlink-0.8) ("rust-libsqlite3-sys" ,rust-libsqlite3-sys-0.26) ("rust-serde-json" ,rust-serde-json-1) ("rust-smallvec" ,rust-smallvec-1) ("rust-time" ,rust-time-0.3) ("rust-url" ,rust-url-2) ("rust-uuid" ,rust-uuid-1)) #:cargo-development-inputs (("rust-bencher" ,rust-bencher-0.1) ("rust-doc-comment" ,rust-doc-comment-0.3) ("rust-lazy-static" ,rust-lazy-static-1) ("rust-regex" ,rust-regex-1) ("rust-tempfile" ,rust-tempfile-3) ("rust-unicase" ,rust-unicase-2) ("rust-uuid" ,rust-uuid-1)))))) (define-public rust-rusqlite-0.26 (package (inherit rust-rusqlite-0.29) (name "rust-rusqlite") (version "0.26.1") (source (origin (method url-fetch) (uri (crate-uri "rusqlite" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "19sh4nnw1i7a6wacqllz20qpqpdj96jsg3dzaq61cwmd3ywv10la")))) (arguments `(#:skip-build? #t #:cargo-inputs (("rust-bitflags" ,rust-bitflags-1) ("rust-byteorder" ,rust-byteorder-1) ("rust-chrono" ,rust-chrono-0.4) ("rust-csv" ,rust-csv-1) ("rust-fallible-iterator" ,rust-fallible-iterator-0.2) ("rust-fallible-streaming-iterator" ,rust-fallible-streaming-iterator-0.1) ("rust-hashlink" ,rust-hashlink-0.7) ("rust-lazy-static" ,rust-lazy-static-1) ("rust-libsqlite3-sys" ,rust-libsqlite3-sys-0.23) ("rust-memchr" ,rust-memchr-2) ("rust-serde-json" ,rust-serde-json-1) ("rust-smallvec" ,rust-smallvec-1) ("rust-time" ,rust-time-0.3) ("rust-url" ,rust-url-2) ("rust-uuid" ,rust-uuid-0.8)))))) (define-public rust-rusqlite-macros-0.3 (package (name "rust-rusqlite-macros") (version "0.3.0") (source (origin (method url-fetch) (uri (crate-uri "rusqlite-macros" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0i8fiv3jqwjcq2rdbwd5wycvh6fyfrw0y2wazinr2wpicifmxp7c")))) (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-fallible-iterator" ,rust-fallible-iterator-0.3) ("rust-litrs" ,rust-litrs-0.4) ("rust-sqlite3-parser" ,rust-sqlite3-parser-0.13)))) (home-page "https://github.com/rusqlite/rusqlite") (synopsis "Private implementation detail of rusqlite crate") (description "This package provides a private implementation detail of the @code{rusqlite} crate.") (license license:expat))) (define-public rust-rusqlite-macros-0.2 (package (inherit rust-rusqlite-macros-0.3) (name "rust-rusqlite-macros") (version "0.2.0") (source (origin (method url-fetch) (uri (crate-uri "rusqlite-macros" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "07y5887q4via4k7hdfxh61nmcwwz8r0bqlgxrk1p177lrkgz8cdp")))) (arguments `(#:cargo-inputs (("rust-fallible-iterator" ,rust-fallible-iterator-0.3) ("rust-litrs" ,rust-litrs-0.4) ("rust-sqlite3-parser" ,rust-sqlite3-parser-0.12)))))) (define-public rust-rusqlite-macros-0.1 (package (inherit rust-rusqlite-macros-0.2) (name "rust-rusqlite-macros") (version "0.1.0") (source (origin (method url-fetch) (uri (crate-uri "rusqlite-macros" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0bbgnp7pgk358js63666ix6a9p4fr4lgigaaf4av3aj45qksi4ix")))) (arguments `(#:cargo-inputs (("rust-fallible-iterator" ,rust-fallible-iterator-0.3) ("rust-sqlite3-parser" ,rust-sqlite3-parser-0.12))))))