modules(pretalx): partial setup
This commit is contained in:
parent
98911e21fd
commit
31f6ffb533
6 changed files with 1171 additions and 0 deletions
|
@ -9,6 +9,7 @@ let
|
|||
callPackage f (subsetArgs // extraArgs);
|
||||
self = rec {
|
||||
acme-dns = callPackage ./servers/acme-dns.nix {};
|
||||
pretalx = callPackage ./web-apps/pretalx {};
|
||||
};
|
||||
in
|
||||
self
|
||||
|
|
3
pkgs/web-apps/pretalx/README.md
Normal file
3
pkgs/web-apps/pretalx/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Python environment for Nixcon VPS
|
||||
|
||||
Note: Requires a patched version of poetry to work
|
28
pkgs/web-apps/pretalx/default.nix
Normal file
28
pkgs/web-apps/pretalx/default.nix
Normal 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
1107
pkgs/web-apps/pretalx/poetry.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
10
pkgs/web-apps/pretalx/pretalx_wrapper.py
Normal file
10
pkgs/web-apps/pretalx/pretalx_wrapper.py
Normal 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:])
|
22
pkgs/web-apps/pretalx/pyproject.toml
Normal file
22
pkgs/web-apps/pretalx/pyproject.toml
Normal 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"
|
Loading…
Reference in a new issue