at 23.05-pre 47 lines 1.1 kB view raw
1{ lib, buildPythonPackage, fetchPypi 2, django 3 4, azure-storage-blob 5, boto3 6, dropbox 7, google-cloud-storage 8, libcloud 9, paramiko 10}: 11 12buildPythonPackage rec { 13 pname = "django-storages"; 14 version = "1.13.1"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "sha256-s9mOzAnxsWJ8Kyz0MJZDIs5OCGF9v5tCNsFqModaHgs="; 19 }; 20 21 propagatedBuildInputs = [ django ]; 22 23 preCheck = '' 24 export DJANGO_SETTINGS_MODULE=tests.settings 25 # timezone issues https://github.com/jschneier/django-storages/issues/1171 26 substituteInPlace tests/test_sftp.py \ 27 --replace 'test_accessed_time' 'dont_test_accessed_time' \ 28 --replace 'test_modified_time' 'dont_test_modified_time' 29 ''; 30 checkInputs = [ 31 azure-storage-blob 32 boto3 33 dropbox 34 google-cloud-storage 35 libcloud 36 paramiko 37 ]; 38 39 pythonImportsCheck = [ "storages" ]; 40 41 meta = with lib; { 42 description = "Collection of custom storage backends for Django"; 43 homepage = "https://django-storages.readthedocs.io"; 44 license = licenses.bsd3; 45 maintainers = with maintainers; [ mmai ]; 46 }; 47}