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