mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
[Backport release-26.05] glitchtip: 6.1.8 -> 6.2.0 (#537581)
This commit is contained in:
commit
a89600c654
7 changed files with 131 additions and 8 deletions
|
|
@ -10,13 +10,13 @@
|
|||
|
||||
buildNpmPackage (finalAttrs: {
|
||||
pname = "glitchtip-frontend";
|
||||
version = "6.1.8";
|
||||
version = "6.2.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "glitchtip";
|
||||
repo = "glitchtip-frontend";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-y8NPj1xjGnGS9yBFaRjFRxLdTGrAq08T9N7cZN5IeSc=";
|
||||
hash = "sha256-iKY1w9lmfuyvDblH/TlnUwAnda17qWGxmx1qtmQRENg=";
|
||||
};
|
||||
|
||||
nodejs = nodejs_22;
|
||||
|
|
@ -25,7 +25,7 @@ buildNpmPackage (finalAttrs: {
|
|||
name = "${finalAttrs.pname}-${finalAttrs.version}-npm-deps";
|
||||
inherit (finalAttrs) src;
|
||||
npmDepsFetcherVersion = 3;
|
||||
hash = "sha256-AIzPJpNvGV/U71UFAUwOqx8kb31s7LXhMha4bXV+oCU=";
|
||||
hash = "sha256-V9aRKoJ6+BN/q7NS21eZBopzkWje8sOGGL1AgO4cUM0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
|
|||
42
pkgs/by-name/gl/glitchtip/glitchtip-rust.nix
Normal file
42
pkgs/by-name/gl/glitchtip/glitchtip-rust.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitLab,
|
||||
rustPlatform,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "glitchtip-rust";
|
||||
version = "0.3.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "glitchtip";
|
||||
repo = "glitchtip-rust";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-0FG+seIWqfyOG3JR0WF4ICnxMAPx9FO0JyFSB43CttU=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit (finalAttrs) pname version src;
|
||||
hash = "sha256-14j7h4TgQhTE5oihnvjAxtGZhPajuTRD4Cga8xzN9Lg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
rustPlatform.cargoSetupHook
|
||||
rustPlatform.maturinBuildHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "gt_rust" ];
|
||||
|
||||
meta = {
|
||||
description = "Rust components of GlitchTip Backend";
|
||||
homepage = "https://glitchtip.com";
|
||||
changelog = "https://gitlab.com/glitchtip/glitchtip-rust/-/tags/v${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [
|
||||
defelo
|
||||
felbinger
|
||||
];
|
||||
};
|
||||
})
|
||||
|
|
@ -13,6 +13,7 @@ let
|
|||
self = python;
|
||||
packageOverrides = final: prev: {
|
||||
django = final.django_6;
|
||||
glitchtip-rust = final.callPackage ./glitchtip-rust.nix { };
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -24,11 +25,11 @@ let
|
|||
arro3-core
|
||||
arro3-io
|
||||
boto3
|
||||
brotli
|
||||
cxxfilt
|
||||
django
|
||||
django-allauth
|
||||
django-anymail
|
||||
django-async-backend
|
||||
django-cors-headers
|
||||
django-environ
|
||||
django-extensions
|
||||
|
|
@ -45,8 +46,10 @@ let
|
|||
duckdb
|
||||
google-cloud-logging
|
||||
granian
|
||||
glitchtip-rust
|
||||
mcp
|
||||
minidump
|
||||
opentelemetry-proto
|
||||
orjson
|
||||
psycopg
|
||||
pydantic
|
||||
|
|
@ -76,14 +79,14 @@ in
|
|||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "glitchtip";
|
||||
version = "6.1.8";
|
||||
version = "6.2.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "glitchtip";
|
||||
repo = "glitchtip-backend";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-4RAZYGoS1tUbcPVv8L0sFWqFfBX05yXKZHFZDbEn0C0=";
|
||||
hash = "sha256-E1YwJwfL5+Q68xRfnoi2Sg+vAZxGQa0IKfOSVuLVnK0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
@ -127,6 +130,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
|
||||
passthru = {
|
||||
inherit frontend python;
|
||||
inherit (python.pkgs) glitchtip-rust;
|
||||
tests = { inherit (nixosTests) glitchtip; };
|
||||
updateScript = ./update.sh;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,3 +7,4 @@ version=$(curl ${GITLAB_TOKEN:+-H "Private-Token: $GITLAB_TOKEN"} -sL https://gi
|
|||
|
||||
nix-update --version="$version" glitchtip
|
||||
nix-update --version="$version" glitchtip.frontend
|
||||
nix-update glitchtip.glitchtip-rust
|
||||
|
|
|
|||
|
|
@ -0,0 +1,74 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
django,
|
||||
fetchFromGitHub,
|
||||
poetry-core,
|
||||
postgresql,
|
||||
postgresqlTestHook,
|
||||
psycopg,
|
||||
psycopg-pool,
|
||||
pytest-django,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-async-backend";
|
||||
version = "6.0.7";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Arfey";
|
||||
repo = "django-async-backend";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-4zaXPfHIE9RwkSbHPt1DHFInn8LP+JXiBiMJYkZeR6M=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace tests/settings.py \
|
||||
--replace-fail '"HOST": "localhost"' '"HOST": "/build/run/postgresql"'
|
||||
|
||||
substituteInPlace tests/db/backends/postgresql/test_async_backend.py \
|
||||
--replace-fail "new_connection.get_database_version())[0], 15" "new_connection.get_database_version())[0], ${lib.versions.major postgresql.version}"
|
||||
'';
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
dependencies = [
|
||||
django
|
||||
psycopg
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "django_async_backend" ];
|
||||
|
||||
env = {
|
||||
DJANGO_SETTINGS_MODULE = "settings";
|
||||
PGDATABASE = "postgres";
|
||||
PGUSER = "postgres";
|
||||
};
|
||||
|
||||
preCheck = ''
|
||||
export PYTHONPATH=$PYTHONPATH:$PWD/tests
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
django # must come first as vtasks only works with django 6
|
||||
|
||||
postgresql
|
||||
postgresqlTestHook
|
||||
psycopg-pool
|
||||
pytest-django
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlags = [ "./tests" ];
|
||||
|
||||
meta = {
|
||||
description = "Django extension providing async capabilities for database and other components";
|
||||
homepage = "https://github.com/Arfey/django-async-backend";
|
||||
changelog = "https://github.com/Arfey/django-async-backend/releases/tag/${src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ SuperSandro2000 ];
|
||||
broken = lib.versionOlder (lib.versions.major django.version) "6";
|
||||
};
|
||||
}
|
||||
|
|
@ -23,14 +23,14 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-vtasks";
|
||||
version = "2.1.1";
|
||||
version = "2.1.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "glitchtip";
|
||||
repo = "django-vtasks";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-f9x6atPMYgQQ/jpCJdDj33l+mhyei+6IWi4bqqVWxU8=";
|
||||
hash = "sha256-L2desiA5ZSdW6KcWuJ4UmtqDVuvAFeRplLgJex7inVM=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
|
|||
|
|
@ -4120,6 +4120,8 @@ self: super: with self; {
|
|||
|
||||
django-apscheduler = callPackage ../development/python-modules/django-apscheduler { };
|
||||
|
||||
django-async-backend = callPackage ../development/python-modules/django-async-backend { };
|
||||
|
||||
django-auditlog = callPackage ../development/python-modules/django-auditlog { };
|
||||
|
||||
django-auth-ldap = callPackage ../development/python-modules/django-auth-ldap {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue