<commit_before>{ newScope, lib, python3 }:

let
  self = lib.makeExtensible (self: let inherit (self) callPackage; in {
    callPackage = newScope self;

    python3 = callPackage ./python.nix { inherit python3; };

    hyperkitty = callPackage ./hyperkitty.nix { };

    mailman = callPackage ./package.nix { };

    mailman-hyperkitty = callPackage ./mailman-hyperkitty.nix { };

    postorius = callPackage ./postorius.nix { };

    web = callPackage ./web.nix { };

    buildEnvs = { web ? self.web
                , mailman ? self.mailman
                , mailman-hyperkitty ? self.mailman-hyperkitty
                , withHyperkitty ? false
                , withLDAP ? false
                }:
      {
        mailmanEnv = self.python3.withPackages
          (ps: [ mailman ps.psycopg2 ]
            ++ lib.optional withHyperkitty mailman-hyperkitty
            ++ lib.optionals withLDAP [ ps.ldap ps.django-auth-ldap ]);
        webEnv = self.python3.withPackages
          (ps: [ web ps.psycopg2 ] ++ lib.optionals withLDAP [ ps.ldap ps.django-auth-ldap ]);
      };
  });

in self<commit_msg>mailmanPackages.buildEnvs: Fixup after ldap -> python-ldap rename<commit_after>{ newScope, lib, python3 }:

let
  self = lib.makeExtensible (self: let inherit (self) callPackage; in {
    callPackage = newScope self;

    python3 = callPackage ./python.nix { inherit python3; };

    hyperkitty = callPackage ./hyperkitty.nix { };

    mailman = callPackage ./package.nix { };

    mailman-hyperkitty = callPackage ./mailman-hyperkitty.nix { };

    postorius = callPackage ./postorius.nix { };

    web = callPackage ./web.nix { };

    buildEnvs = { web ? self.web
                , mailman ? self.mailman
                , mailman-hyperkitty ? self.mailman-hyperkitty
                , withHyperkitty ? false
                , withLDAP ? false
                }:
      {
        mailmanEnv = self.python3.withPackages
          (ps: [ mailman ps.psycopg2 ]
            ++ lib.optional withHyperkitty mailman-hyperkitty
            ++ lib.optionals withLDAP [ ps.python-ldap ps.django-auth-ldap ]);
        webEnv = self.python3.withPackages
          (ps: [ web ps.psycopg2 ] ++ lib.optionals withLDAP [ ps.python-ldap ps.django-auth-ldap ]);
      };
  });

in self
{'fraction_non_alphanumeric': 0.11663732394366197, 'fraction_numerical': 0.006161971830985915, 'mean_word_length': 2.1051912568306013, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, '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': '4424638', 'n_tokens_mistral': 749, 'n_tokens_neox': 703, 'n_words': 144}