diff options
author | Franz Geffke <franz@pantherx.org> | 2023-11-06 20:08:14 +0000 |
---|---|---|
committer | Franz Geffke <franz@pantherx.org> | 2023-11-06 20:08:14 +0000 |
commit | 47b4c9c854915df93893dbaa993accfacf9027fe (patch) | |
tree | 4f9b1742d63fcfbc94cc6b8d84f76c4d00c3a0b7 /px/packages/common.scm | |
parent | 0b426d7b7ed8e176bf464ef9e0683f74a6c9d20f (diff) |
rewrite: apply guix-reference formatting; cleanup some module imports
Diffstat (limited to 'px/packages/common.scm')
-rw-r--r-- | px/packages/common.scm | 172 |
1 files changed, 80 insertions, 92 deletions
diff --git a/px/packages/common.scm b/px/packages/common.scm index 0da9c3f..d1d6151 100644 --- a/px/packages/common.scm +++ b/px/packages/common.scm @@ -1,9 +1,10 @@ ;;; Definition for Shared Packages between PantherX Applications -;;; Author: Reza Alizadeh Majd (r.majd@pantherx.org) +;;; Reza Alizadeh Majd (r.majd@pantherx.org) ;;; (define-module (px packages common) - #:use-module ((guix licenses) #:prefix license:) + #:use-module ((guix licenses) + #:prefix license:) #:use-module (guix download) #:use-module (guix packages) #:use-module (guix build-system gnu) @@ -27,52 +28,50 @@ #:use-module (px packages python-xyz) #:use-module (px packages common)) - (define-public capnproto-0.9 (package (inherit capnproto) (name "capnproto") (version "0.9.2") - (source (origin - (method url-fetch) - (uri (string-append - "https://capnproto.org/capnproto-c++-" - version ".tar.gz")) - (sha256 - (base32 - "0hi5lpyhskdg99n9zgn0ffr79gn12m1j7igkp9wikklg2p4yjca0")))))) + (source + (origin + (method url-fetch) + (uri (string-append "https://capnproto.org/capnproto-c++-" version + ".tar.gz")) + (sha256 + (base32 "0hi5lpyhskdg99n9zgn0ffr79gn12m1j7igkp9wikklg2p4yjca0")))))) (define-public python-pycapnp (package (name "python-pycapnp") (version "1.1.0") - (source (origin - (method url-fetch) - (uri (string-append "https://github.com/capnproto/pycapnp/archive/v" version ".tar.gz")) - (sha256 (base32 "0kj9jpg6vpmlqgzqnxz2dsbihwhimq9xzq6yrkqvgdzz3sdlk8fh")))) + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/capnproto/pycapnp/archive/v" + version ".tar.gz")) + (sha256 + (base32 "0kj9jpg6vpmlqgzqnxz2dsbihwhimq9xzq6yrkqvgdzz3sdlk8fh")))) (build-system python-build-system) (arguments - `(#:python ,python-3 - #:tests? #f - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-source - (lambda _ - (substitute* '("setup.py") - (("if need_build") "if False")) - #t)) - (delete 'sanity-check)))) - (native-inputs `( - ("python-pkgconfig" ,python-pkgconfig) - ("python-setuptools" ,python-setuptools) - ("python-wrapper", python-wrapper) - ("python-cython", python-cython) - ("capnproto", capnproto) - ("python-sphinx" ,python-sphinx) - ("python-tox" ,python-tox) - ("python-wheel" ,python-wheel))) - (propagated-inputs `( - ("python-jinja2" ,python-jinja2))) + `(#:python ,python-3 + #:tests? #f + #:phases (modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda _ + (substitute* '("setup.py") + (("if need_build") + "if False")) #t)) + (delete 'sanity-check)))) + (native-inputs `(("python-pkgconfig" ,python-pkgconfig) + ("python-setuptools" ,python-setuptools) + ("python-wrapper" ,python-wrapper) + ("python-cython" ,python-cython) + ("capnproto" ,capnproto) + ("python-sphinx" ,python-sphinx) + ("python-tox" ,python-tox) + ("python-wheel" ,python-wheel))) + (propagated-inputs `(("python-jinja2" ,python-jinja2))) (home-page "http://jparyani.github.io/pycapnp") (synopsis "Capability-based RPC and serialization system") (description "This is a python3 wrapping of the C++ @@ -83,31 +82,30 @@ implementation of the Cap’n Proto library.") (package (name "python-pynng") (version "0.4.0") - (source (origin - (method url-fetch) - (uri (pypi-uri "pynng" version)) - (sha256 (base32 "0621j0dmrhg8ydrpr3k5ia50hp73r9khrcbwvp43jb51igl6wwvc")))) - (build-system python-build-system) - (arguments `( - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-source - (lambda _ - (substitute* '("setup.py" "build_nng.sh") - ;; Replace default shell path. - (("/bin/bash") (which "sh"))) - #t))) - #:tests? #f)) - (native-inputs `( - ("python-pytest-runner" ,python-pytest-runner) - ("cmake" ,cmake) - )) - (propagated-inputs `( - ("python-cffi" ,python-cffi) - ("python-sniffio" ,python-sniffio))) + (source + (origin + (method url-fetch) + (uri (pypi-uri "pynng" version)) + (sha256 + (base32 "0621j0dmrhg8ydrpr3k5ia50hp73r9khrcbwvp43jb51igl6wwvc")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda _ + (substitute* '("setup.py" "build_nng.sh") + ;; Replace default shell path. + (("/bin/bash") + (which "sh"))) #t))) + #:tests? #f)) + (native-inputs `(("python-pytest-runner" ,python-pytest-runner) + ("cmake" ,cmake))) + (propagated-inputs `(("python-cffi" ,python-cffi) + ("python-sniffio" ,python-sniffio))) (home-page "https://github.com/codypiersall/pynng") (synopsis "Python bindings for Nanomsg Next Generation") - (description "Ergonomic bindings for nanomsg next generation (nng), in Python. + (description + "Ergonomic bindings for nanomsg next generation (nng), in Python. pynng provides a nice interface on top of the full power of nng") (license license:expat))) @@ -116,52 +114,42 @@ pynng provides a nice interface on top of the full power of nng") (name "cpr") (version "1.5.1") (source - (origin - (method url-fetch) - (uri (string-append - "https://github.com/whoshuu/cpr/archive/v" - version - ".tar.gz")) - (sha256 - (base32 - "18w0v6jhjz05c844wgsb07cxp4bbmcw0jiz9ka4hjsn6g5s3rmx6")))) - (arguments - `(#:tests? #f - #:configure-flags '("-DUSE_SYSTEM_CURL=ON" "-DBUILD_CPR_TESTS=OFF"))) + (origin + (method url-fetch) + (uri (string-append "https://github.com/whoshuu/cpr/archive/v" version + ".tar.gz")) + (sha256 + (base32 "18w0v6jhjz05c844wgsb07cxp4bbmcw0jiz9ka4hjsn6g5s3rmx6")))) + (arguments + `(#:tests? #f + #:configure-flags '("-DUSE_SYSTEM_CURL=ON" "-DBUILD_CPR_TESTS=OFF"))) (build-system cmake-build-system) - (native-inputs `( - ("curl" ,curl) - ("pkg-config" ,pkg-config))) - (inputs `( - ("curl" ,curl))) + (native-inputs `(("curl" ,curl) + ("pkg-config" ,pkg-config))) + (inputs `(("curl" ,curl))) (home-page "https://whoshuu.github.io/cpr/") (synopsis "C++ Requests: Curl for People ") (description "C++ Requests is a simple wrapper around libcurl inspired by the excellent Python Requests project.") (license license:expat))) - + (define-public restclient-cpp (package (name "restclient-cpp") (version "0.5.2") (source - (origin - (method url-fetch) - (uri (string-append - "https://github.com/mrtazz/restclient-cpp/archive/" - version - ".tar.gz")) - (sha256 - (base32 - "1v35pkgqdcmyr1c91r9r312rjak6x24k4j1vslpnaf59z4cacayn")))) + (origin + (method url-fetch) + (uri (string-append "https://github.com/mrtazz/restclient-cpp/archive/" + version ".tar.gz")) + (sha256 + (base32 "1v35pkgqdcmyr1c91r9r312rjak6x24k4j1vslpnaf59z4cacayn")))) (arguments - `(#:tests? #f)) + `(#:tests? #f)) (build-system cmake-build-system) - (native-inputs `( - ("libtool" ,libtool) - ("pkg-config" ,pkg-config))) - (inputs `( - ("curl" ,curl))) + (native-inputs `(("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs `(("curl" ,curl))) (home-page "https://github.com/mrtazz/restclient-cpp") (synopsis "C++ client") (description "C++ client for making HTTP/REST requests ") |