From 61e8e9800fc5fbbb380bd8f0ae18aeef37861a17 Mon Sep 17 00:00:00 2001 From: Henri Bourcereau Date: Mon, 23 Sep 2019 12:17:47 +0200 Subject: [PATCH] pythonPackages.django-storages: init at 1.7.2 --- .../django-storages/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/python-modules/django-storages/default.nix diff --git a/pkgs/development/python-modules/django-storages/default.nix b/pkgs/development/python-modules/django-storages/default.nix new file mode 100644 index 00000000000..a82f9d3fb9b --- /dev/null +++ b/pkgs/development/python-modules/django-storages/default.nix @@ -0,0 +1,25 @@ +{ stdenv, buildPythonPackage, fetchPypi +, django +}: + +buildPythonPackage rec { + pname = "django-storages"; + version = "1.7.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "01xq232h321716r08rari9payas7fsiwwr5q6zgcrlwkckwxxczk"; + }; + + propagatedBuildInputs = [ django ]; + + # django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. + doCheck = false; + + meta = with stdenv.lib; { + description = "Collection of custom storage backends for Django"; + homepage = https://django-storages.readthedocs.io; + license = licenses.bsd3; + maintainers = with maintainers; [ mmai ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4e91373eedc..623e1ee8eeb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2957,6 +2957,8 @@ in { django-sampledatahelper = callPackage ../development/python-modules/django-sampledatahelper { }; + django-storages = callPackage ../development/python-modules/django-storages { }; + django-versatileimagefield = callPackage ../development/python-modules/django-versatileimagefield { }; django-sites = callPackage ../development/python-modules/django-sites { };