<commit_before>{ lib, buildPythonPackage, fetchPypi,
  celery, django, psycopg2
}:

buildPythonPackage rec {
  pname = "djmail";
  version = "1.1.0";

  meta = {
    description = "Simple, powerfull and nonobstructive django email middleware.";
    homepage = https://github.com/bameda/djmail;
    license = lib.licenses.bsd3;
  };

  src = fetchPypi {
    inherit pname version;
    sha256 = "87d2a8b4bdf67ae9b312e127ccc873a53116cf297ec786460d782ce82eaa76b5";
  };

  propagatedBuildInputs = [ celery django psycopg2 ];

  # 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;
}
<commit_msg>python3.pkgs.djmail: fix build<commit_after>{ lib, buildPythonPackage, fetchPypi
, glibcLocales
, celery, django, psycopg2
}:

buildPythonPackage rec {
  pname = "djmail";
  version = "1.1.0";

  meta = {
    description = "Simple, powerfull and nonobstructive django email middleware";
    homepage = https://github.com/bameda/djmail;
    license = lib.licenses.bsd3;
  };

  src = fetchPypi {
    inherit pname version;
    sha256 = "87d2a8b4bdf67ae9b312e127ccc873a53116cf297ec786460d782ce82eaa76b5";
  };

  nativeBuildInputs = [ glibcLocales ];

  LC_ALL = "en_US.UTF-8";

  propagatedBuildInputs = [ celery django psycopg2 ];

  # 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;
}

{'fraction_non_alphanumeric': 0.09043173862310384, 'fraction_numerical': 0.057176196032672114, 'mean_word_length': 4.586319218241043, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4037168', 'n_tokens_mistral': 637, 'n_tokens_neox': 566, 'n_words': 131}