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
|
;;; Package Repository for GNU Guix
;;; Copyright © 2021-2023 Reza Alizadeh Majd <r.majd@pantherx.org>
;;; Copyright © 2021-2025 Franz Geffke <m@f-a.nz>
(define-module (px packages common)
#:use-module ((guix licenses)
#:prefix license:)
#:use-module (guix download)
#:use-module (guix packages)
#:use-module (guix build-system gnu)
#:use-module (guix build-system cmake)
#:use-module (guix build-system python)
#:use-module (gnu packages cmake)
#:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages libffi)
#:use-module (gnu packages python)
#:use-module (gnu packages python-build)
#:use-module (gnu packages python-check)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages serialization)
#:use-module (gnu packages sphinx)
#:use-module (guix utils)
#:use-module (gnu packages autotools)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages curl)
#:use-module (gnu packages check)
#:use-module (gnu packages networking)
#:use-module (px packages python-xyz))
(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"))))))
(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"))))
(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)))
(home-page "http://jparyani.github.io/pycapnp")
(synopsis "Capability-based RPC and serialization system")
(description "This is a python3 wrapping of the C++
implementation of the Cap’n Proto library.")
(license license:gpl2+)))
(define-public python-pynng
(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)))
(home-page "https://github.com/codypiersall/pynng")
(synopsis "Python bindings for Nanomsg Next Generation")
(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)))
(define-public cpr
(package
(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")))
(build-system cmake-build-system)
(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"))))
(arguments
`(#:tests? #f))
(build-system cmake-build-system)
(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 ")
(license license:expat)))
|