mob next [ci-skip] [ci skip] [skip ci]

lastFile:pkgs/inventree/default.nix
This commit is contained in:
2026-04-03 10:24:11 +07:00
parent 962de5c827
commit 3589d725b7
2 changed files with 88 additions and 72 deletions

View File

@@ -5,7 +5,7 @@
... ...
}: }:
let let
domain = "poy-inventree.newedge.house"; domain = "poy-inventory.newedge.house";
in in
{ {
imports = [ imports = [
@@ -82,7 +82,7 @@ in
services.inventree = { services.inventree = {
enable = true; enable = true;
hostName = "${domain}"; hostName = "${domain}";
config.site_url = "http://${config.services.inventree.hostName}"; config.site_url = "https://${config.services.inventree.hostName}";
secretKeyFile = config.clan.core.vars.generators.inventree.files.secret-key.path; secretKeyFile = config.clan.core.vars.generators.inventree.files.secret-key.path;
config.oidc_private_key_file = config.clan.core.vars.generators.inventree.files.oidc-key.path; config.oidc_private_key_file = config.clan.core.vars.generators.inventree.files.oidc-key.path;
config.adminPasswordFile = config.clan.core.vars.generators.inventree.files.admin-password.path; config.adminPasswordFile = config.clan.core.vars.generators.inventree.files.admin-password.path;

View File

@@ -7,13 +7,13 @@
nodejs, nodejs,
}: }:
let let
version = "unstable-2025-05-09"; version = "1.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "inventree"; owner = "inventree";
repo = "InvenTree"; repo = "InvenTree";
rev = "e0acfaa762da0dd7b2822b567202210ca8b7dbd3"; tag = "${version}";
hash = "sha256-K+cqErDUmgPO7625P3jp7+7BOYEfyJ1nElae6RlJvvI="; hash = "sha256-GAATo5zkkNCes9fCQsYUsZ9auhgYEUnevN4obWj3ZRA=";
}; };
frontend = stdenvNoCC.mkDerivation { frontend = stdenvNoCC.mkDerivation {
@@ -22,7 +22,7 @@ let
yarnOfflineCache = fetchYarnDeps { yarnOfflineCache = fetchYarnDeps {
yarnLock = "${src}/src/frontend/yarn.lock"; yarnLock = "${src}/src/frontend/yarn.lock";
hash = "sha256-KpWuYCrkGN+4UnwV1STEbTL0FWcLZ7Wq8a8ST55OpGM="; hash = "sha256-Ijbkx+INZgsvMhkzo8h/FUY75W3UHnKAdUjQRD8kJZw=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@@ -56,73 +56,89 @@ python3.pkgs.buildPythonApplication rec {
format = "other"; format = "other";
dependencies = with python3.pkgs; [ dependencies =
coreapi with python3.pkgs;
cryptography [
distutils coreapi
dj-rest-auth cryptography
django distutils
django-allauth dj-rest-auth
django-allauth.optional-dependencies.openid django
django-allauth.optional-dependencies.mfa django-allauth
django-allauth.optional-dependencies.socialaccount django-allauth.optional-dependencies.openid
django-cleanup django-allauth.optional-dependencies.mfa
django-cors-headers django-allauth.optional-dependencies.socialaccount
django-dbbackup django-cleanup
django-error-report-2 django-cors-headers
django-filter django-dbbackup
django-flags django-error-report-2
django-formtools django-filter
django-ical django-flags
django-js-asset django-formtools
django-maintenance-mode django-ical
django-markdownify django-js-asset
django-money django-maintenance-mode
django-mptt django-markdownify
django-redis django-money
django-oauth-toolkit django-mptt
django-otp django-mailbox
django-q-sentry django-anymail
django-q2 django-redis
django-redis django-oauth-toolkit
django-sesame django-otp
django-sql-utils django-q-sentry
django-structlog django-q2
django-stdimage django-redis
django-taggit django-sesame
django-user-sessions django-sql-utils
django-weasyprint django-structlog
djangorestframework django-stdimage
djangorestframework-simplejwt django-taggit
djangorestframework-simplejwt.optional-dependencies.crypto django-user-sessions
django-xforwardedfor-middleware django-weasyprint
drf-spectacular djangorestframework
dulwich djangorestframework-simplejwt
feedparser djangorestframework-simplejwt.optional-dependencies.crypto
gunicorn django-xforwardedfor-middleware
pdf2image django-storages
pillow drf-spectacular
pint dulwich
pip-licenses feedparser
pypdf gunicorn
python-barcode pdf2image
python-barcode.optional-dependencies.images pillow
python-dotenv pint
pyyaml pip-licenses
qrcode pypdf
qrcode.optional-dependencies.pil python-barcode
rapidfuzz python-barcode.optional-dependencies.images
sentry-sdk python-dotenv
tablib pyyaml
tablib.optional-dependencies.xls qrcode
tablib.optional-dependencies.xlsx qrcode.optional-dependencies.pil
tablib.optional-dependencies.yaml rapidfuzz
weasyprint sentry-sdk
whitenoise tablib
tablib.optional-dependencies.xls
tablib.optional-dependencies.xlsx
tablib.optional-dependencies.yaml
weasyprint
whitenoise
psycopg2 psycopg2
fido2 fido2
];
opentelemetry-api
opentelemetry-sdk
opentelemetry-exporter-otlp
opentelemetry-instrumentation-django
opentelemetry-instrumentation-requests
opentelemetry-instrumentation-redis
opentelemetry-instrumentation-sqlite3
opentelemetry-instrumentation-system-metrics
opentelemetry-instrumentation-wsgi
]
++ django-anymail.optional-dependencies.amazon-ses;
installPhase = '' installPhase = ''
substituteInPlace src/backend/InvenTree/InvenTree/settings.py --replace-fail "django_slowtests.testrunner.DiscoverSlowestTestsRunner" "django.test.runner.DiscoverRunner" substituteInPlace src/backend/InvenTree/InvenTree/settings.py --replace-fail "django_slowtests.testrunner.DiscoverSlowestTestsRunner" "django.test.runner.DiscoverRunner"