modules(pretalx): partial setup

This commit is contained in:
Raito Bezarius 2022-04-19 01:00:07 +02:00
parent 98911e21fd
commit 31f6ffb533
6 changed files with 1171 additions and 0 deletions

View file

@ -9,6 +9,7 @@ let
callPackage f (subsetArgs // extraArgs); callPackage f (subsetArgs // extraArgs);
self = rec { self = rec {
acme-dns = callPackage ./servers/acme-dns.nix {}; acme-dns = callPackage ./servers/acme-dns.nix {};
pretalx = callPackage ./web-apps/pretalx {};
}; };
in in
self self

View file

@ -0,0 +1,3 @@
# Python environment for Nixcon VPS
Note: Requires a patched version of poetry to work

View file

@ -0,0 +1,28 @@
{
pkgs ? import <nixpkgs> { },
}:
let
poetry2nix = pkgs.poetry2nix;
in (poetry2nix.mkPoetryApplication {
projectDir = ./.;
doCheck = false;
overrides = poetry2nix.overrides.withDefaults (self: super: {
pretalx = super.pretalx.overrideAttrs (old: {
nativeBuildInputs = old.nativeBuildInputs ++ [
pkgs.sass
];
});
cssutils = super.cssutils.override {
preferWheel = true;
};
django-scopes = super.django-scopes.override {
preferWheel = true;
};
});
})/*.overrideAttrs(old: {
inherit (old.passthru.python.pythonPackages.pretalx) pname name version;
})*/

1107
pkgs/web-apps/pretalx/poetry.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,10 @@
import sys
import os
module_name = 'pretalx'
def main():
os.environ['PYTHONPATH'] = ':'.join(sys.path)
os.execv(sys.executable, [sys.executable, '-m', module_name] + sys.argv[1:])

View file

@ -0,0 +1,22 @@
[tool.poetry]
name = "pretalx_wrapper"
version = "0.2.0"
description = ""
authors = ["adisbladis <adisbladis@gmail.com>", "Raito Bezarius <masterancpp@gmail.com>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.9"
pretalx = "^2.2"
# psycopg2-binary = "^2.8"
# dj-static = "^0.0.6"
# django-redis = "^4.10"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.poetry.scripts]
pretalx = "pretalx_wrapper:main"