2022-12-28 21:21:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, django
|
2022-08-12 12:06:08 +00:00
|
|
|
, azure-storage-blob
|
|
|
|
, boto3
|
|
|
|
, dropbox
|
|
|
|
, google-cloud-storage
|
|
|
|
, libcloud
|
|
|
|
, paramiko
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-storages";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "1.13.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-y63RXJCc63JH1P/FA/Eqm+w2mZ340L73wx5XF31RJog=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
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'
|
|
|
|
'';
|
2022-12-28 21:21:41 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
azure-storage-blob
|
|
|
|
boto3
|
|
|
|
dropbox
|
|
|
|
google-cloud-storage
|
|
|
|
libcloud
|
|
|
|
paramiko
|
|
|
|
];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"storages"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Collection of custom storage backends for Django";
|
|
|
|
homepage = "https://django-storages.readthedocs.io";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/jschneier/django-storages/blob/${version}/CHANGELOG.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ mmai ];
|
|
|
|
};
|
|
|
|
}
|