summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/django-storages/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/django-storages/default.nix')
-rw-r--r--pkgs/development/python-modules/django-storages/default.nix73
1 files changed, 27 insertions, 46 deletions
diff --git a/pkgs/development/python-modules/django-storages/default.nix b/pkgs/development/python-modules/django-storages/default.nix
index b835a6fb0766..f7524810f4a1 100644
--- a/pkgs/development/python-modules/django-storages/default.nix
+++ b/pkgs/development/python-modules/django-storages/default.nix
@@ -1,19 +1,20 @@
-{ lib
-, azure-storage-blob
-, boto3
-, buildPythonPackage
-, cryptography
-, django
-, dropbox
-, fetchFromGitHub
-, google-cloud-storage
-, libcloud
-, moto
-, paramiko
-, pytestCheckHook
-, pythonOlder
-, rsa
-, setuptools
+{
+ lib,
+ azure-storage-blob,
+ boto3,
+ buildPythonPackage,
+ cryptography,
+ django,
+ dropbox,
+ fetchFromGitHub,
+ google-cloud-storage,
+ libcloud,
+ moto,
+ paramiko,
+ pytestCheckHook,
+ pythonOlder,
+ rsa,
+ setuptools,
}:
buildPythonPackage rec {
@@ -30,36 +31,18 @@ buildPythonPackage rec {
hash = "sha256-V0uFZvnBi0B31b/j/u3Co6dd9XcdVefiSkl3XmCTJG4=";
};
- nativeBuildInputs = [
- setuptools
- ];
+ nativeBuildInputs = [ setuptools ];
- propagatedBuildInputs = [
- django
- ];
+ propagatedBuildInputs = [ django ];
passthru.optional-dependencies = {
- azure = [
- azure-storage-blob
- ];
- boto3 = [
- boto3
- ];
- dropbox = [
- dropbox
- ];
- google = [
- google-cloud-storage
- ];
- libcloud = [
- libcloud
- ];
- s3 = [
- boto3
- ];
- sftp = [
- paramiko
- ];
+ azure = [ azure-storage-blob ];
+ boto3 = [ boto3 ];
+ dropbox = [ dropbox ];
+ google = [ google-cloud-storage ];
+ libcloud = [ libcloud ];
+ s3 = [ boto3 ];
+ sftp = [ paramiko ];
};
nativeCheckInputs = [
@@ -69,9 +52,7 @@ buildPythonPackage rec {
rsa
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
- pythonImportsCheck = [
- "storages"
- ];
+ pythonImportsCheck = [ "storages" ];
env.DJANGO_SETTINGS_MODULE = "tests.settings";