1{ lib, buildPythonPackage, fetchPypi 2, glibcLocales 3, celery, django, psycopg2 4}: 5 6buildPythonPackage rec { 7 pname = "djmail"; 8 version = "2.0.0"; 9 10 meta = { 11 description = "Simple, powerfull and nonobstructive django email middleware"; 12 homepage = "https://github.com/bameda/djmail"; 13 license = lib.licenses.bsd3; 14 }; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "cf3ce7626305d218a8bf2b6a219266ef8061aceeefc1c70a54170f4105465202"; 19 }; 20 21 nativeBuildInputs = [ glibcLocales ]; 22 23 LC_ALL = "en_US.UTF-8"; 24 25 propagatedBuildInputs = [ celery django psycopg2 ]; 26 27 # 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. 28 doCheck = false; 29}