Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, django 5, azure-storage-blob 6, boto3 7, dropbox 8, google-cloud-storage 9, libcloud 10, paramiko 11}: 12 13buildPythonPackage rec { 14 pname = "django-storages"; 15 version = "1.13.2"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-y63RXJCc63JH1P/FA/Eqm+w2mZ340L73wx5XF31RJog="; 20 }; 21 22 propagatedBuildInputs = [ 23 django 24 ]; 25 26 preCheck = '' 27 export DJANGO_SETTINGS_MODULE=tests.settings 28 # timezone issues https://github.com/jschneier/django-storages/issues/1171 29 substituteInPlace tests/test_sftp.py \ 30 --replace 'test_accessed_time' 'dont_test_accessed_time' \ 31 --replace 'test_modified_time' 'dont_test_modified_time' 32 ''; 33 34 nativeCheckInputs = [ 35 azure-storage-blob 36 boto3 37 dropbox 38 google-cloud-storage 39 libcloud 40 paramiko 41 ]; 42 43 pythonImportsCheck = [ 44 "storages" 45 ]; 46 47 meta = with lib; { 48 description = "Collection of custom storage backends for Django"; 49 homepage = "https://django-storages.readthedocs.io"; 50 changelog = "https://github.com/jschneier/django-storages/blob/${version}/CHANGELOG.rst"; 51 license = licenses.bsd3; 52 maintainers = with maintainers; [ mmai ]; 53 }; 54}