aboutsummaryrefslogtreecommitdiff
path: root/config-daemon.ac
blob: f66f31269dfb34e6ac90626f8bc78b75f43db94f (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
dnl -*- Autoconf -*- fragment for the C++ daemon.

AC_MSG_CHECKING([whether to build daemon])
AC_MSG_RESULT([$guix_build_daemon])

dnl C++ environment.  This macro must be used unconditionnaly.
AC_PROG_CXX
AC_LANG([C++])

if test "x$guix_build_daemon" = "xyes"; then

  GUIX_ASSERT_CXX11

  AC_PROG_RANLIB
  AC_CONFIG_HEADER([nix/config.h])

  dnl Use 64-bit file system calls so that we can support files > 2 GiB.
  AC_SYS_LARGEFILE

  dnl Look for libbz2, a required dependency.
  AC_CHECK_LIB([bz2], [BZ2_bzWriteOpen], [true],
    [AC_MSG_ERROR([Guix requires libbz2, which is part of bzip2.  See http://www.bzip.org/.])])
  AC_CHECK_HEADERS([bzlib.h], [true],
    [AC_MSG_ERROR([Guix requires libbz2, which is part of bzip2.  See http://www.bzip.org/.])])

  dnl Look for SQLite, a required dependency.
  PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= 3.6.19])

  AC_DEFINE([NIX_VERSION], ["0.0.0"], [Fake Nix version number.])
  AC_DEFINE_UNQUOTED([SYSTEM], ["$guix_system"],
    [Guix host system type--i.e., platform and OS kernel tuple.])

  case "$LIBGCRYPT_PREFIX" in
    no)
      LIBGCRYPT_CFLAGS=""
      ;;
    *)
      LIBGCRYPT_CFLAGS="-I$LIBGCRYPT_PREFIX/include"
      ;;
  esac

  case "$LIBGCRYPT_LIBDIR" in
    no)
      LIBGCRYPT_LIBS="-lgcrypt"
      ;;
    *)
      LIBGCRYPT_LIBS="-L$LIBGCRYPT_LIBDIR -lgcrypt"
      ;;
  esac

  AC_SUBST([LIBGCRYPT_CFLAGS])
  AC_SUBST([LIBGCRYPT_LIBS])

  save_CFLAGS="$CFLAGS"
  save_LDFLAGS="$LDFLAGS"
  CFLAGS="$CFLAGS $LIBGCRYPT_CFLAGS"
  LDFLAGS="$LDFLAGS $LIBGCRYPT_LDFLAGS"

  have_gcrypt=yes
  AC_CHECK_LIB([gcrypt], [gcry_md_open], [:], [have_gcrypt=no])
  AC_CHECK_HEADER([gcrypt.h], [:], [have_gcrypt=no])
  if test "x$have_gcrypt" != "xyes"; then
    AC_MSG_ERROR([GNU libgcrypt not found; please install it.])
  fi

  CFLAGS="$save_CFLAGS"
  LDFLAGS="$save_LDFLAGS"

  dnl Chroot support.
  AC_CHECK_FUNCS([chroot unshare])
  AC_CHECK_HEADERS([sched.h sys/param.h sys/mount.h sys/syscall.h])

  if test "x$ac_cv_func_chroot" != "xyes"; then
    AC_MSG_ERROR(['chroot' function missing, bailing out])
  fi

  dnl lutimes and lchown: used when canonicalizing store items.
  dnl posix_fallocate: used when extracting archives.
  dnl vfork: to speed up spawning of helper programs.
  dnl   `--> now disabled because of unpredictable behavior:
  dnl        see <http://lists.gnu.org/archive/html/guix-devel/2014-05/msg00036.html>
  dnl        and Nix commit f794465c (Nov. 2012).
  dnl sched_setaffinity: to improve RPC locality.
  dnl statvfs: to detect disk-full conditions.
  dnl strsignal: for error reporting.
  AC_CHECK_FUNCS([lutimes lchown posix_fallocate sched_setaffinity \
     statvfs nanosleep strsignal])

  dnl Check whether the store optimiser can optimise symlinks.
  AC_MSG_CHECKING([whether it is possible to create a link to a symlink])
  ln -s bla tmp_link
  if ln tmp_link tmp_link2 2> /dev/null; then
      AC_MSG_RESULT(yes)
      AC_DEFINE(CAN_LINK_SYMLINK, 1, [Whether link() works on symlinks.])
  else
      AC_MSG_RESULT(no)
  fi
  rm -f tmp_link tmp_link2

  dnl Check for <locale>.
  AC_LANG_PUSH(C++)
  AC_CHECK_HEADERS([locale])
  AC_LANG_POP(C++)


  dnl Check whether we have the `personality' syscall, which allows us
  dnl to do i686-linux builds on x86_64-linux machines.
  AC_CHECK_HEADERS([sys/personality.h])

  dnl Check for <linux/fs.h> (for immutable file support).
  AC_CHECK_HEADERS([linux/fs.h])

  dnl Determine the appropriate default list of substitute URLs.
  GUILE_MODULE_AVAILABLE([have_gnutls], [(gnutls)])
  if test "x$have_gnutls" = "xyes"; then
    guix_substitute_urls="https://mirror.hydra.gnu.org"
  else
    AC_MSG_WARN([GnuTLS is missing, substitutes will be downloaded in the clear])
    guix_substitute_urls="http://mirror.hydra.gnu.org"
  fi
  AC_MSG_CHECKING([for default substitute URLs])
  AC_MSG_RESULT([$guix_substitute_urls])

  AC_DEFINE_UNQUOTED([GUIX_SUBSTITUTE_URLS], ["$guix_substitute_urls"],
    [Default list of substitute URLs used by 'guix-daemon'.])

  dnl Check whether the 'offload' build hook can be built (uses
  dnl 'restore-file-set', which requires unbuffered custom binary input
  dnl ports from Guile >= 2.0.10.)
  GUIX_CHECK_UNBUFFERED_CBIP
  guix_build_daemon_offload="$ac_cv_guix_cbips_support_setvbuf"

  if test "x$guix_build_daemon_offload" = "xyes"; then
    AC_DEFINE([HAVE_DAEMON_OFFLOAD_HOOK], [1],
      [Define if the daemon's 'offload' build hook is being built.])
  fi

  dnl Temporary directory used to store the daemon's data.
  GUIX_TEST_ROOT_DIRECTORY
  GUIX_TEST_ROOT="$ac_cv_guix_test_root"
  AC_SUBST([GUIX_TEST_ROOT])

  GUIX_CHECK_LOCALSTATEDIR

  AC_CONFIG_FILES([nix/scripts/list-runtime-roots],
    [chmod +x nix/scripts/list-runtime-roots])
  AC_CONFIG_FILES([nix/scripts/substitute],
    [chmod +x nix/scripts/substitute])
  AC_CONFIG_FILES([nix/scripts/guix-authenticate],
    [chmod +x nix/scripts/guix-authenticate])
  AC_CONFIG_FILES([nix/scripts/offload],
    [chmod +x nix/scripts/offload])
fi

AM_CONDITIONAL([BUILD_DAEMON], [test "x$guix_build_daemon" = "xyes"])
AM_CONDITIONAL([BUILD_DAEMON_OFFLOAD],			\
  [test "x$guix_build_daemon" = "xyes"			\
   && test "x$guix_build_daemon_offload" = "xyes"])
plements binary serialization.") (license license:boost1.0))) (define-public msgpack-cxx (package (inherit msgpack-c) (name "msgpack-cxx") (version "6.1.0") (source (origin (method url-fetch) (uri (string-append "https://github.com/msgpack/msgpack-c/releases/download/" "cpp-" version "/" name "-" version ".tar.gz")) (sha256 (base32 "1rrrf3nskcv994z3pbq6a5z2021piz118rccmm1y7zlf7klygv93")))) (build-system cmake-build-system) (propagated-inputs (list boost zlib)) ;included in headers (description "Msgpack is a library for C++ that implements binary serialization."))) ;;; The msgpack package was split into msgpack-c and msgpack-cxx starting from ;;; version 4.0.0. (define-public msgpack (deprecated-package "msgpack" msgpack-c)) (define-public msgpack-3 (package (inherit msgpack-c) (name "msgpack") (version "3.3.0") (source (origin (method url-fetch) (uri (string-append "https://github.com/msgpack/msgpack-c/releases/download/" "cpp-" version "/msgpack-" version ".tar.gz")) (snippet '(let ((p (open-file "msgpack.pc.in" "a"))) (display (string-append "Requires: " "zlib" "\n") p) (close-output-port p))) (sha256 (base32 "0yzhq50ijvwrfkr97knhvn54lj3f4hr3zy39yq8wpf6xll94s4bf")))) (native-inputs (list googletest-1.8)) (description "Msgpack is a library for C/C++ that implements binary serialization. This is the legacy version that predates the split into C and C++ specific packages."))) (define-public libmpack (package (name "libmpack") (version "1.0.5") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/tarruda/libmpack") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0rai5djdkjz7bsn025k5489in7r1amagw1pib0z4qns6b52kiar2")))) (build-system gnu-build-system) (arguments `(#:test-target "test" #:make-flags (list "CC=gcc" (string-append "PREFIX=" (assoc-ref %outputs "out"))) #:phases (modify-phases %standard-phases (delete 'configure)))) (native-inputs (list libtool)) (home-page "https://github.com/tarruda/libmpack") (synopsis "Small binary serialization library") (description "Libmpack is a small binary serialization and RPC library that implements both the msgpack and msgpack-rpc specifications.") (license license:expat))) (define-public lua-libmpack (package (inherit libmpack) (name "lua-libmpack") (version "1.0.8") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/libmpack/libmpack-lua") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1ijvzgq5hvib03w5rghv31wi7byamwg7qdx5pawvhvnflaii8ivw")))) (build-system gnu-build-system) (arguments `(;; FIXME: tests require "busted", which is not yet available in Guix. #:tests? #f #:test-target "test" #:make-flags (let* ((lua-version ,(package-version lua)) (lua-major+minor ,(version-major+minor (package-version lua)))) (list "CC=gcc" "FETCH=echo" ; don't fetch anything from the web "UNTGZ=echo" ; and don't try to unpack it "USE_SYSTEM_LUA=yes" (string-append "MPACK_LUA_VERSION=" lua-version) (string-append "MPACK_LUA_VERSION_NOPATCH=" lua-major+minor) (string-append "PREFIX=" (assoc-ref %outputs "out")) (string-append "LUA_CMOD_INSTALLDIR=" (assoc-ref %outputs "out") "/lib/lua/" lua-major+minor))) #:phases (modify-phases %standard-phases (delete 'configure) (add-after 'unpack 'unpack-mpack-sources (lambda* (#:key inputs #:allow-other-keys) ;; This is broken because mpack-src is not a file, but all ;; prerequisites are added to the inputs of the gcc invocation. (substitute* "Makefile" (("\\$\\(MPACK\\): mpack-src") "$(MPACK): ")) (copy-recursively (assoc-ref inputs "libmpack") "mpack-src") #t))))) (inputs (list lua)) (native-inputs `(("pkg-config" ,pkg-config) ("libmpack" ,(package-source libmpack)))) (home-page "https://github.com/libmpack/libmpack-lua") (synopsis "Lua bindings for the libmpack binary serialization library"))) (define-public lua5.1-libmpack (package/inherit lua-libmpack (name "lua5.1-libmpack") (arguments (substitute-keyword-arguments (package-arguments lua-libmpack) ((#:make-flags flags) `(let* ((lua-version ,(package-version lua-5.1)) (lua-major+minor ,(version-major+minor (package-version lua-5.1)))) (list "CC=gcc" "USE_SYSTEM_LUA=yes" (string-append "MPACK_LUA_VERSION=" lua-version) (string-append "MPACK_LUA_VERSION_NOPATCH=" lua-major+minor) (string-append "PREFIX=" (assoc-ref %outputs "out")) (string-append "LUA_CMOD_INSTALLDIR=" (assoc-ref %outputs "out") "/lib/lua/" lua-major+minor)))))) (inputs `(("lua" ,lua-5.1))))) (define-public lua5.2-libmpack (package/inherit lua-libmpack (name "lua5.2-libmpack") (arguments (substitute-keyword-arguments (package-arguments lua-libmpack) ((#:make-flags flags) `(let* ((lua-version ,(package-version lua-5.2)) (lua-major+minor ,(version-major+minor (package-version lua-5.2)))) (list "CC=gcc" "USE_SYSTEM_LUA=yes" (string-append "MPACK_LUA_VERSION=" lua-version) (string-append "MPACK_LUA_VERSION_NOPATCH=" lua-major+minor) (string-append "PREFIX=" (assoc-ref %outputs "out")) (string-append "LUA_CMOD_INSTALLDIR=" (assoc-ref %outputs "out") "/lib/lua/" lua-major+minor)))))) (inputs `(("lua" ,lua-5.2))))) (define-public libscfg (package (name "libscfg") (version "0.1.1") (home-page "https://git.sr.ht/~emersion/libscfg") (source (origin (method git-fetch) (uri (git-reference (url "https://git.sr.ht/~emersion/libscfg") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1b1ps7wba4anm3x1yndnd730dwl6rdz3zwjgxmsyq31fnjrjydv9")))) (build-system meson-build-system) (synopsis "Scfg library written in C") (description "This package provides a C library for to parse @uref{https://git.sr.ht/~emersion/scfg, scfg}, a simple configuration file format with one directive per line.") (license license:expat))) (define-public libyaml (package (name "libyaml") (version "0.2.5") (source (origin (method url-fetch) (uri (string-append "https://pyyaml.org/download/libyaml/yaml-" version ".tar.gz")) (sha256 (base32 "1x4fcw13r3lqy8ndydr3ili87wicplw2awbcv6r21qgyfndswhn6")))) (build-system gnu-build-system) (arguments '(#:configure-flags '("--disable-static"))) (home-page "https://pyyaml.org/wiki/LibYAML") (synopsis "YAML 1.1 parser and emitter written in C") (description "LibYAML is a YAML 1.1 parser and emitter written in C.") (license license:expat))) (define-public libyaml+static (package (inherit libyaml) (name "libyaml+static") (arguments '(#:configure-flags '("--enable-static"))))) (define-public libcyaml (package (name "libcyaml") (version "1.3.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/tlsa/libcyaml") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (patches (search-patches "libcyaml-libyaml-compat.patch")) (sha256 (base32 "0gvf3h8r8300wdwfjgxw3nzlj7w14q63m67p8wdm5fvpha017n4y")))) (build-system gnu-build-system) (arguments `(#:test-target "test" #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) (string-append "CC=" ,(cc-for-target))) #:phases (modify-phases %standard-phases (delete 'configure)))) ; no configure script (inputs (list libyaml)) (native-inputs (list pkg-config)) (synopsis "C library for reading and writing YAML") (description "LibCYAML is a C library written in ISO C11 for reading and writing structured YAML documents. The fundamental idea behind CYAML is to allow applications to construct schemas which describe both the permissible structure of the YAML documents to read/write, and the C data structure(s) in which the loaded data is arranged in memory.") (home-page "https://github.com/tlsa/libcyaml") (license license:isc))) (define-public libfyaml (package (name "libfyaml") (version "0.8") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/pantoniou/libfyaml") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "002g0grddfi5y42lq06zj8266rf7h27wq76sr598ad5pxllx3y3g")))) (build-system gnu-build-system) (native-inputs (list autoconf automake libtool pkg-config)) (home-page "https://github.com/pantoniou/libfyaml") (synopsis "YAML version 1.2 and JSON parser and writer") (description "Libfyaml is a YAML parser and emitter, supporting the latest YAML spec and passing the full YAML testsuite. It is designed to be very efficient, avoiding copies of data, and has no artificial limits like the 1024 character limit for implicit keys.") (license license:expat))) (define-public yaml-cpp (package (name "yaml-cpp") (version "0.8.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/jbeder/yaml-cpp") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0whdn6pqa56532ml20h89p6rchcrrazdrvi5fz6zpmrkl15yiki7")))) (build-system cmake-build-system) (arguments '(#:configure-flags '("-DYAML_BUILD_SHARED_LIBS=ON"))) (native-inputs (list python)) (home-page "https://github.com/jbeder/yaml-cpp") (synopsis "YAML parser and emitter in C++") (description "YAML parser and emitter in C++ matching the YAML 1.2 spec.") (license license:bsd-3))) (define-public jsoncpp (package (name "jsoncpp") (version "1.9.5") (home-page "https://github.com/open-source-parsers/jsoncpp") (source (origin (method git-fetch) (uri (git-reference (url home-page) (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "06zss7z56ykzwcsfdxarmini63hkf8i8gx70q3yw9wb0bw7wj9rv")))) (build-system meson-build-system) (synopsis "C++ library for interacting with JSON") (description "JsonCpp is a C++ library that allows manipulating JSON values, including serialization and deserialization to and from strings. It can also preserve existing comment in unserialization/serialization steps, making it a convenient format to store user input files.") (license license:expat))) ;; Tensorflow does not build with jsoncpp 1.8.x. It is built with commit ;; 4356d9bba191e1e16ce7a92073cbf3e63564e973, which lies between version 1.7.2 ;; and 1.7.3. (define-public jsoncpp-for-tensorflow (package (inherit jsoncpp) (name "jsoncpp") (version "1.7.3") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/open-source-parsers/jsoncpp") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1180ln8blrb0mwzpcf78k49hlki6di65q77rsvglf83kfcyh4d7z")))) (build-system cmake-build-system) (arguments (list #:configure-flags #~'("-DBUILD_SHARED_LIBS:BOOL=YES" #$@(if (%current-target-system) #~("-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF") #~())))))) (define-public json.sh (let ((commit "0d5e5c77365f63809bf6e77ef44a1f34b0e05840") ;no releases (revision "1")) (package (name "json.sh") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/dominictarr/JSON.sh") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "14lxvp5xbdk0dcwkjbdp098z1108j8z48zaibndh4i731kkcz43i")))) (build-system copy-build-system) (arguments `(#:install-plan '(("JSON.sh" "bin/")) #:phases (modify-phases %standard-phases (add-before 'install 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "./all-tests.sh")) #t)) (add-after 'install 'wrap-program (lambda* (#:key inputs outputs #:allow-other-keys) (wrap-program (string-append (assoc-ref outputs "out") "/bin/JSON.sh") `("PATH" ":" prefix (,(string-join (map (lambda (in) (string-append (assoc-ref inputs in) "/bin")) '("grep" "sed")) ":")))) #t))))) (inputs (list bash-minimal grep sed)) (synopsis "Pipeable JSON parser written in shell") (description "This package provides a JSON parser written in shell, compatible with ash, Bash, Dash and Zsh. Pipe JSON to it, and it traverses the JSON objects and prints out the path to the current object (as a JSON array) and then the object, without whitespace.") (home-page "https://github.com/dominictarr/JSON.sh") (license (list license:expat license:asl2.0))))) ;dual-licensed (define-public ckdl (package (name "ckdl") (version "0.1.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/tjol/ckdl") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1zdpil61lm141lcxmfrg7jvfjp2n98v5q2rfqzm4wiqcdprgmasv")))) (build-system cmake-build-system) (arguments (list #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON" "-DDOWNLOAD_TEST_DATA=OFF"))) (home-page "https://ckdl.readthedocs.io/en/latest/") (synopsis "C library for parsing and emitting KDL") (description "@samp{ckdl} is a C library for parsing and emitting KDL. This package also provides @samp{kdlpp}, a C++20 wrapper around @samp{ckdl}.") (license license:expat))) (define-public capnproto (package (name "capnproto") (version "1.0") (source (origin (method url-fetch) (uri (string-append "https://capnproto.org/capnproto-c++-" version ".tar.gz")) (sha256 (base32 "03f1862ljdshg7d0rg3j7jzgm3ip55kzd2y91q7p0racax3hxx6i")))) (build-system gnu-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-before 'check 'use-tmp-for-temporary-files (lambda _ ;; Use /tmp for temporary files, as the default /var/tmp directory ;; doesn't exist. (substitute* "src/kj/filesystem-disk-test.c++" (("VAR\\_TMP \"/var/tmp\"") "VAR_TMP \"/tmp\""))))))) (home-page "https://capnproto.org") (synopsis "Capability-based RPC and serialization system") (description "Cap'n Proto is a very fast data interchange format and capability-based RPC system. Think JSON, except binary. Or think Protocol Buffers, except faster.") (license license:expat))) (define-public python-msgspec (package (name "python-msgspec") (version "0.16.0") (source (origin ;; There are no tests in the PyPI tarball. (method git-fetch) (uri (git-reference (url "https://github.com/jcrist/msgspec") (commit version))) (file-name (git-file-name name version)) (modules '((guix build utils))) (snippet ;; Delete autogenerated file, regenerate in a phase. '(begin (delete-file "msgspec/atof_consts.h"))) (sha256 (base32 "09q567klcv7ly60w9lqip2ffyhrij100ky9igh3p3vqwbml33zb3")))) (build-system pyproject-build-system) (arguments (list ;; Disable only one failing test. ;; ;; AssertionError: msgspec/structs.pyi:7: error: Positional-only ;; parameters are only supported in Python 3.8 and greater #:test-flags #~(list "-k" "not test_mypy") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'versioneer (lambda _ (invoke "versioneer" "install") (substitute* "setup.py" (("version=versioneer.get_version\\(),") (format #f "version=~s," #$version))))) (add-after 'versioneer 'atof-consts (lambda _ (with-directory-excursion "scripts" ;; Regenerate the autogenerated file. (invoke "python" "generate_atof_consts.py"))))))) (native-inputs (list python-attrs python-gcovr python-msgpack python-mypy python-pytest python-setuptools-scm python-versioneer python-setuptools python-wheel)) (propagated-inputs (list python-pyyaml python-tomli python-tomli-w)) (home-page "https://jcristharif.com/msgspec/") (synopsis "Fast serialization/validation library") (description "@code{msgspec} is a fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML. It includes the following features: @itemize @item High performance encoders/decoders for common protocols. @item Support for a wide variety of Python types. @item Zero-cost schema validation using familiar Python type annotations. @item A speedy Struct type for representing structured data. @end itemize") ;; XXX: It might support more architectures but GitHub Actions listed only ;; two right now. Try to build for the rest supported by Guix. See: ;; https://github.com/jcrist/msgspec/blob/main/.github/workflows/ci.yml#L83 (supported-systems (list "x86_64-linux" "aarch64-linux")) (license license:bsd-3))) (define-public python-ruamel.yaml (package (name "python-ruamel.yaml") (version "0.18.6") (source (origin (method url-fetch) (uri (pypi-uri "ruamel.yaml" version)) (sha256 (base32 "06rimidc9nb3i3r90n3a1zwf0qxw24zqykb3wpxwd1p72yifc9wb")))) (build-system python-build-system) (native-inputs (list python-pytest)) (propagated-inputs (list python-ruamel.yaml.clib)) (arguments `(;; TODO: Tests require packaging "ruamel.std.pathlib". #:tests? #f)) (home-page "https://sourceforge.net/projects/ruamel-yaml/") (synopsis "YAML 1.2 parser/emitter") (description "This package provides YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order. It is a derivative of Kirill Simonov’s PyYAML 3.11. It supports YAML 1.2 and has round-trip loaders and dumpers. It supports comments. Block style and key ordering are kept, so you can diff the source.") (license license:expat))) (define-public python-ruamel.yaml-0.16 (package (inherit python-ruamel.yaml) (version "0.16.13") (source (origin (method url-fetch) (uri (pypi-uri "ruamel.yaml" version)) (sha256 (base32 "0hm9yg785f46bkrgqknd6fdvmkby9dpzjnm0b63qf0i748acaj5v")))))) (define-public python-ruamel.yaml.clib (package (name "python-ruamel.yaml.clib") (version "0.2.8") (source (origin ;; pypi release code has cythonized code without corresponding source. (method hg-fetch) (uri (hg-reference (url "http://hg.code.sf.net/p/ruamel-yaml-clib/code") (changeset version))) (file-name (string-append name "-" version "-checkout")) (sha256 (base32 "0qspqnk72xrjj17b00hjibbzjk3krsrakzf08wxwz7z908cv6278")) (modules '((guix build utils))) (snippet '(begin (delete-file "_ruamel_yaml.c"))))) (build-system python-build-system) (arguments `(#:tests? #f ; This package is split from python-ruamel.yaml and ; depends on modules from it for the test suite. #:phases (modify-phases %standard-phases (delete 'sanity-check) ; Depends on python-ruamel.yaml (add-after 'unpack 'cythonize-code (lambda _ (invoke "cython" "_ruamel_yaml.pyx")))))) (native-inputs (list python-cython)) (home-page "https://sourceforge.net/p/ruamel-yaml-clib/code/ci/default/tree") (synopsis "C version of reader, parser and emitter for ruamel.yaml") (description "This package provides a C version of the reader, parser and emitter for @code{ruamel.yaml} derived from libyaml.") (license license:expat))) (define-public python-cbor (package (name "python-cbor") (version "1.0.0") (source (origin (method url-fetch) (uri (pypi-uri "cbor" version)) (sha256 (base32 "1dmv163cnslyqccrybkxn0c9s1jk1mmafmgxv75iamnz5lk5l8hk")))) (build-system pyproject-build-system) (native-inputs (list python-setuptools python-wheel)) (home-page "https://github.com/brianolson/cbor_py") (synopsis "Implementation of the Concise Binary Object Representation") (description "Python-cbor provides an implementation of the Concise Binary Object Representation (@dfn{CBOR}). CBOR is comparable to JSON, has a superset of JSON's ability, but serializes to a binary format which is smaller and faster to generate and parse. The two primary functions are @code{cbor.loads} and @code{cbor.dumps}.") (license license:asl2.0))) (define-public flatbuffers (package (name "flatbuffers") (version "2.0.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/google/flatbuffers") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1zbf6bdpps8369r1ql00irxrp58jnalycc8jcapb8iqg654vlfz8")))) (build-system cmake-build-system) (arguments '(#:build-type "Release" #:configure-flags (list "-DFLATBUFFERS_BUILD_SHAREDLIB=ON" (string-append "-DCMAKE_INSTALL_LIBDIR=" (assoc-ref %outputs "out") "/lib")) #:phases (modify-phases %standard-phases (add-after 'unpack 'make-writable (lambda _ (for-each make-file-writable (find-files "."))))))) (home-page "https://google.github.io/flatbuffers/") (synopsis "Memory-efficient serialization library") (description "FlatBuffers is a cross-platform serialization library for C++, C#, C, Go, Java, JavaScript, PHP, and Python. It was originally created for game development and other performance-critical applications.") (license license:asl2.0))) (define-public flatbuffers-23.1 ;; needed explicitly by tensorflow-lite 2.13.1 (package (inherit flatbuffers) (version "23.1.21") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/google/flatbuffers") (commit (string-append "v" version)))) (file-name (git-file-name "flatbuffers" version)) (sha256 (base32 "1z3a6l8g2y53i5xzraswfs2i0i3kk52zv7nzc2q3fgisbyiri3pz")))) (arguments (substitute-keyword-arguments (package-arguments flatbuffers) ((#:configure-flags flags #~'()) #~(append #$flags '("-DCMAKE_POSITION_INDEPENDENT_CODE=ON"))))))) (define-public flatbuffers-next (package (inherit flatbuffers) (version "24.3.25") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/google/flatbuffers") (commit (string-append "v" version)))) (file-name (git-file-name "flatbuffers" version)) (sha256 (base32 "0q066x1h0x9225aj25jv40gxgz46yvwmiqc2g6q06mkkg1144kxq")))))) (define-public python-flatbuffers (package (name "python-flatbuffers") (version "23.1.21") (source (origin (method url-fetch) (uri (pypi-uri "flatbuffers" version)) (sha256 (base32 "11gzc7mhl984248q6abz5rrsph76j0y99mwk24xc90sxpcxr2j59")))) (build-system pyproject-build-system) (native-inputs (list python-setuptools python-wheel)) (home-page "https://google.github.io/flatbuffers/") (synopsis "FlatBuffers serialization for Python") (description "This package provides the @code{FlatBuffers} serialization format for Python.") (license license:asl2.0))) (define-public python-feather-format (package (name "python-feather-format") (version "0.4.1") (source (origin (method url-fetch) (uri (pypi-uri "feather-format" version)) (sha256 (base32 "00w9hwz7sj3fkdjc378r066vdy6lpxmn6vfac3qx956k8lvpxxj5")))) (build-system python-build-system) (propagated-inputs (list python-pandas python-pyarrow)) (home-page "https://github.com/wesm/feather") (synopsis "Python wrapper to the Feather file format") (description "This package provides a Python wrapper library to the Apache Arrow-based Feather binary columnar serialization data frame format.") (license license:asl2.0))) (define-public libnop (let ((commit "35e800d81f28c632956c5a592e3cbe8085ecd430") (revision "0")) (package (name "libnop") (version (git-version "0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/google/libnop") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "0qqbaljq54qiq0dky9nj47igfcs065ry526jg9a0aafbfl9krpy2")))) (build-system gnu-build-system) (arguments (list #:test-target "test" #:phases #~(modify-phases %standard-phases (delete 'configure) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "out/test")))) (replace 'install (lambda _ (copy-recursively "include" (string-append #$output "/include"))))))) (native-inputs (list googletest)) (home-page "https://github.com/google/libnop") (synopsis "C++ Native Object Protocols") (description "@code{libnop} is a header-only library for serializing and deserializing C++ data types without external code generators or runtime support libraries.") (license license:asl2.0)))) (define-public valijson (package (name "valijson") (version "1.0.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/tristanpenman/valijson") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1ai6bj6mxd12mpvf1xwlad2vic5lsqy44adilp17wa7dq275vwf2")))) (build-system cmake-build-system) ;; The test suite is disabled as it requires Boost, Qt 5, Poco as well as ;; other bundled libraries. (arguments (list #:tests? #f)) (home-page "https://github.com/tristanpenman/valijson") (synopsis "JSON schema validation C++ header-only library") (description "Valijson is a header-only JSON Schema validation library for C++11. It provides a simple validation API that allows loading JSON Schemas, and validate documents loaded by one of several supported parser libraries.") (license license:bsd-2)))