depot/third_party/nixpkgs/pkgs/development/python-modules/django-storages/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

47 lines
1.1 KiB
Nix

{ lib, buildPythonPackage, fetchPypi
, django
, azure-storage-blob
, boto3
, dropbox
, google-cloud-storage
, libcloud
, paramiko
}:
buildPythonPackage rec {
pname = "django-storages";
version = "1.13.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-s9mOzAnxsWJ8Kyz0MJZDIs5OCGF9v5tCNsFqModaHgs=";
};
propagatedBuildInputs = [ django ];
preCheck = ''
export DJANGO_SETTINGS_MODULE=tests.settings
# timezone issues https://github.com/jschneier/django-storages/issues/1171
substituteInPlace tests/test_sftp.py \
--replace 'test_accessed_time' 'dont_test_accessed_time' \
--replace 'test_modified_time' 'dont_test_modified_time'
'';
checkInputs = [
azure-storage-blob
boto3
dropbox
google-cloud-storage
libcloud
paramiko
];
pythonImportsCheck = [ "storages" ];
meta = with lib; {
description = "Collection of custom storage backends for Django";
homepage = "https://django-storages.readthedocs.io";
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};
}