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

buildPythonPackage rec {
  pname = "django-sites";
  version = "0.10";

  meta = {
    description = ''
      Alternative implementation of django "sites" framework
      based on settings instead of models.
    '';
    homepage = https://github.com/niwinz/django-sites;
    license = lib.licenses.bsd3;
  };

  src = fetchPypi {
    inherit pname version;
    sha256 = "f6f9ae55a05288a95567f5844222052b6b997819e174f4bde4e7c23763be6fc3";
  };

  propagatedBuildInputs = [ django ];

  # django.core.exceptions.ImproperlyConfigured: Requested settings, 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>pythonPackages.django-sites: fix build, flesh out comments<commit_after>{ lib, buildPythonPackage, fetchPypi, django }:

buildPythonPackage rec {
  pname = "django-sites";
  version = "0.10";

  src = fetchPypi {
    inherit pname version;
    sha256 = "f6f9ae55a05288a95567f5844222052b6b997819e174f4bde4e7c23763be6fc3";
  };
  # LICENSE file appears to be missing from pypi package, but expected by the installer
  # https://github.com/niwinz/django-sites/issues/11
  postPatch = ''
    touch LICENSE
  '';

  propagatedBuildInputs = [ django ];

  # required files for test don't seem to be included in pypi package, full source for 0.10
  # version doesn't appear to be present on github
  # https://github.com/niwinz/django-sites/issues/9
  doCheck = false;

  meta = {
    description = ''
      Alternative implementation of django "sites" framework
      based on settings instead of models.
    '';
    homepage = https://github.com/niwinz/django-sites;
    license = lib.licenses.bsd3;
  };
}
{'fraction_non_alphanumeric': 0.09563294637921503, 'fraction_numerical': 0.05970149253731343, 'mean_word_length': 3.7506561679790025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '5997284', 'n_tokens_mistral': 651, 'n_tokens_neox': 571, 'n_words': 150}