mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
48 lines
1.1 KiB
Nix
48 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.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-y63RXJCc63JH1P/FA/Eqm+w2mZ340L73wx5XF31RJog=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|