diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-04-12 01:24:55 +0200 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-06-18 12:31:24 +0200 |
| commit | 6c4cd7a72c5972bb31c577d8283701c3338c59ca (patch) | |
| tree | 10ac639cb262209b8b60903e03b81b1a0aaccdcc /gnu/packages/web.scm | |
| parent | c0f5a814cc63b27f73dc84a9cb2e1dc07bf0e40b (diff) | |
gnu: uwsgi: Update to 2.0.31.
* gnu/packages/web.scm (uwsgi): Update to 2.0.31.
[arguments]<#:phases>: Drop trailling #t. Refresh phase 'install.
[native-inputs]: Drop input labels.
[home-page]: Use permanent redirect.
Change-Id: I34a50a6f9baf080f638e12653e72a1f8f446894d
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages/web.scm')
| -rw-r--r-- | gnu/packages/web.scm | 70 |
1 files changed, 33 insertions, 37 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index e4c1288e685..2786e93b004 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm | |||
| @@ -6038,34 +6038,35 @@ a pure C99 library.") | |||
| 6038 | (define-public uwsgi | 6038 | (define-public uwsgi |
| 6039 | (package | 6039 | (package |
| 6040 | (name "uwsgi") | 6040 | (name "uwsgi") |
| 6041 | (version "2.0.28") | 6041 | (version "2.0.31") |
| 6042 | (source (origin | 6042 | (source (origin |
| 6043 | (method url-fetch) | 6043 | (method url-fetch) |
| 6044 | (uri (pypi-uri name version)) | 6044 | (uri (pypi-uri name version)) |
| 6045 | (sha256 | 6045 | (sha256 |
| 6046 | (base32 | 6046 | (base32 |
| 6047 | "1l4r3smmgrdvqj82zwq33pax4jxr1s6fww84mc44bw9dxy8iijkr")))) | 6047 | "0mv2qz8gjvsc4rdsqdmrjszi972jdw9vjisjls9zy1n1ri8b7y78")))) |
| 6048 | (build-system gnu-build-system) | 6048 | (build-system gnu-build-system) |
| 6049 | (outputs '("out" "python")) | 6049 | (outputs '("out" "python")) |
| 6050 | (arguments | 6050 | (arguments |
| 6051 | '(;; XXX: The 'check' target runs cppcheck to do static code analysis. | 6051 | (list |
| 6052 | ;; But there is no obvious way to run the real tests. | 6052 | ;; XXX: The 'check' target runs cppcheck to do static code analysis. |
| 6053 | #:tests? #f | 6053 | ;; But there is no obvious way to run the real tests. |
| 6054 | #:phases | 6054 | #:tests? #f |
| 6055 | (modify-phases %standard-phases | 6055 | #:phases |
| 6056 | (replace 'configure | 6056 | #~(modify-phases %standard-phases |
| 6057 | ;; Configuration is done by writing an ini file. | 6057 | (replace 'configure |
| 6058 | (lambda* (#:key outputs #:allow-other-keys) | 6058 | ;; Configuration is done by writing an ini file. |
| 6059 | (let* ((out (assoc-ref outputs "out")) | 6059 | (lambda* (#:key outputs #:allow-other-keys) |
| 6060 | (bindir (string-append out "/bin")) | 6060 | (let* ((out (assoc-ref outputs "out")) |
| 6061 | (plugindir (string-append out "/lib/uwsgi"))) | 6061 | (bindir (string-append out "/bin")) |
| 6062 | ;; The build phase outputs files to these directories directly. | 6062 | (plugindir (string-append out "/lib/uwsgi"))) |
| 6063 | (mkdir-p bindir) | 6063 | ;; The build phase outputs files to these directories directly. |
| 6064 | (mkdir-p plugindir) | 6064 | (mkdir-p bindir) |
| 6065 | ;; XXX: Enable other plugins. | 6065 | (mkdir-p plugindir) |
| 6066 | (call-with-output-file "buildconf/guix.ini" | 6066 | ;; XXX: Enable other plugins. |
| 6067 | (lambda (port) | 6067 | (call-with-output-file "buildconf/guix.ini" |
| 6068 | (format port "[uwsgi] | 6068 | (lambda (port) |
| 6069 | (format port "[uwsgi] | ||
| 6069 | yaml = libyaml | 6070 | yaml = libyaml |
| 6070 | bin_name = ~a/uwsgi | 6071 | bin_name = ~a/uwsgi |
| 6071 | plugin_dir = ~a | 6072 | plugin_dir = ~a |
| @@ -6074,23 +6075,18 @@ inherit = base | |||
| 6074 | plugins = cgi,python | 6075 | plugins = cgi,python |
| 6075 | embedded_plugins = | 6076 | embedded_plugins = |
| 6076 | " bindir plugindir)))) | 6077 | " bindir plugindir)))) |
| 6077 | (setenv "PROFILE" "guix") | 6078 | (setenv "PROFILE" "guix"))) |
| 6078 | #t)) | 6079 | (replace 'install |
| 6079 | (replace 'install | 6080 | ;; Move plugins into their own output. |
| 6080 | ;; Move plugins into their own output. | 6081 | (lambda _ |
| 6081 | (lambda* (#:key outputs #:allow-other-keys) | 6082 | (let* ((plugindir (string-append #$output "/lib/uwsgi")) |
| 6082 | (let* ((out (assoc-ref outputs "out")) | 6083 | (python-plugin (string-append plugindir |
| 6083 | (plugindir (string-append out "/lib/uwsgi")) | 6084 | "/python_plugin.so"))) |
| 6084 | (python-plugin (string-append | 6085 | (install-file python-plugin |
| 6085 | plugindir "/python_plugin.so"))) | 6086 | (string-append #$output:python "/lib/uwsgi")) |
| 6086 | (install-file python-plugin | 6087 | (delete-file python-plugin))))))) |
| 6087 | (string-append | ||
| 6088 | (assoc-ref outputs "python") "/lib/uwsgi")) | ||
| 6089 | (delete-file python-plugin) | ||
| 6090 | #t)))))) | ||
| 6091 | (native-inputs | 6088 | (native-inputs |
| 6092 | `(("pkg-config" ,pkg-config) | 6089 | (list pkg-config python-wrapper)) |
| 6093 | ("python" ,python-wrapper))) | ||
| 6094 | (inputs | 6090 | (inputs |
| 6095 | (list jansson | 6091 | (list jansson |
| 6096 | libxml2 | 6092 | libxml2 |
| @@ -6100,7 +6096,7 @@ embedded_plugins = | |||
| 6100 | zlib | 6096 | zlib |
| 6101 | ;; For plugins. | 6097 | ;; For plugins. |
| 6102 | python)) | 6098 | python)) |
| 6103 | (home-page "https://uwsgi-docs.readthedocs.org/") | 6099 | (home-page "https://uwsgi-docs.readthedocs.io/") |
| 6104 | (synopsis "Application container server") | 6100 | (synopsis "Application container server") |
| 6105 | (description | 6101 | (description |
| 6106 | "uWSGI presents a complete stack for networked/clustered web applications, | 6102 | "uWSGI presents a complete stack for networked/clustered web applications, |
