diff options
author | Vinicius Monego <monego@posteo.net> | 2025-07-21 17:14:55 -0300 |
---|---|---|
committer | Vinicius Monego <monego@posteo.net> | 2025-07-23 15:30:17 -0300 |
commit | cfa72fb53d4ed6bf61f9adf5a4a78a8cae9a8234 (patch) | |
tree | 23bb5fa89a1339e754d3f8a6e940a829d22af852 | |
parent | d5994ac10c06b9206eafa2a76f577ab221fea969 (diff) |
gnu: Add python-django-storages.
* gnu/packages/django.scm (python-django-storages): New variable.
Change-Id: I9f5e1d48c7037ca484b66940e34d110f3f48280a
-rw-r--r-- | gnu/packages/django.scm | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 981a4c576e..f81eaef356 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -1632,6 +1632,52 @@ Amazon S3, Dropbox, local file storage or any Django storage.") FileFields during tests.") (license license:expat))) +(define-public python-django-storages + (package + (name "python-django-storages") + (version "1.14.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "django_storages" version)) + (sha256 + (base32 "1ja1jgh7alypsb46ncbc6acsxxw771hf51yfqz4rmxhl8a7ww9bs")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-before 'check 'delete-some-tests + (lambda _ + (delete-file + ;; python-google-cloud-storage broken in the CI + "tests/test_gcloud.py") + (delete-file + ;; python-moto can't find 'mock_s3' + "tests/test_s3.py") + (substitute* "tests/test_utils.py" + ;; This test depends on a file which is likely + ;; unavailble in PyPI (FileNotFoundError). + (("def test_with_string_file_detect_encoding") + "def _test_with_string_file_detect_encoding")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "DJANGO_SETTINGS_MODULE" "tests.settings") + (invoke "django-admin" "test" "tests" + "--pythonpath=."))))))) + (propagated-inputs (list python-django)) + (native-inputs (list python-azure-storage-blob ; azure backend + python-dropbox ; dropbox backend + python-paramiko ; sftp backend + python-pytest + python-setuptools python-wheel)) + (home-page "https://django-storages.readthedocs.io/en/latest/") + (synopsis "Support for many storage backends in Django") + (description + "@code{django-storages} is a project to provide a variety of storage +backends in a single library.") + (license license:bsd-3))) + (define-public python-django-auth-ldap (package (name "python-django-auth-ldap") |