summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2025-07-14 22:24:13 -0300
committerVinicius Monego <monego@posteo.net>2025-07-23 15:30:16 -0300
commit147792f3d3419a5e6e0e3fc17b8e6ff4785ace42 (patch)
treeacff2d1882b733ec2239542d00306b2d9d029ae1 /gnu/packages/python-web.scm
parentc52b336341c32810c6106aa25bab5634148fcade (diff)
gnu: Add python-whitenoise.
* gnu/packages/python-web.scm (python-whitenoise): New variable. Change-Id: I662d03f4bbfdc897fae7c386a5c652427d1c4232
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index ffebc89dd8..a185096e9c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -11085,6 +11085,37 @@ Interface) framework/toolkit for building async web services in Python.")
and FastAPI.")
(license license:expat)))
+(define-public python-whitenoise
+ (package
+ (name "python-whitenoise")
+ (version "6.9.0")
+ (source (origin
+ (method git-fetch) ; PyPI missing test failes
+ (uri (git-reference
+ (url "https://github.com/evansd/whitenoise")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0y00a59ww9f631m51d5db5xcnbckzcwfm64wabp5vamn7l1kqqsj"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags #~(list "-k" "not test_modified"))) ; HTTP 304 error
+ (native-inputs (list python-brotli
+ python-django
+ python-requests
+ python-pytest
+ python-setuptools
+ python-wheel))
+ (home-page "https://github.com/evansd/whitenoise")
+ (synopsis "Static file serving for WSGI applications")
+ (description
+ "WhiteNoise allows your web app to serve its own static files, making it
+a self-contained unit that can be deployed anywhere without relying on nginx,
+Amazon S3 or any other external service.")
+ (license license:expat)))
+
(define-public python-suds
(package
(name "python-suds")