nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 65 lines 1.4 kB view raw
1{ 2 newScope, 3 lib, 4 python312, 5}: 6 7let 8 self = lib.makeExtensible ( 9 self: 10 let 11 inherit (self) callPackage; 12 in 13 { 14 callPackage = newScope self; 15 16 python3 = callPackage ./python.nix { python3 = python312; }; 17 18 hyperkitty = callPackage ./hyperkitty.nix { }; 19 20 mailman = callPackage ./package.nix { }; 21 22 mailman-hyperkitty = callPackage ./mailman-hyperkitty.nix { }; 23 24 postorius = callPackage ./postorius.nix { }; 25 26 web = callPackage ./web.nix { }; 27 28 buildEnvs = 29 { 30 web ? self.web, 31 mailman ? self.mailman, 32 mailman-hyperkitty ? self.mailman-hyperkitty, 33 withHyperkitty ? false, 34 withLDAP ? false, 35 }: 36 { 37 mailmanEnv = self.python3.withPackages ( 38 ps: 39 [ 40 mailman 41 ps.psycopg2 42 ] 43 ++ lib.optional withHyperkitty mailman-hyperkitty 44 ++ lib.optionals withLDAP [ 45 ps.python-ldap 46 ps.django-auth-ldap 47 ] 48 ); 49 webEnv = self.python3.withPackages ( 50 ps: 51 [ 52 web 53 ps.psycopg2 54 ] 55 ++ lib.optionals withLDAP [ 56 ps.python-ldap 57 ps.django-auth-ldap 58 ] 59 ); 60 }; 61 } 62 ); 63 64in 65self