{gns3-server,gns3-gui}: 2.2.59 -> 2.2.61 (#586239)

This commit is contained in:
Anthony
2026-11-14 14:29:20 +00:00
committed by GitHub
3 changed files with 42 additions and 32 deletions

View File

@@ -1,4 +1,8 @@
{ pkgs, lib, ... }:
{ config, lib, ... }:
let
pkgs = config.node.pkgs;
in
{
name = "gns3-server";
meta.maintainers = [ lib.maintainers.anthonyroussel ];

View File

@@ -1,36 +1,35 @@
{
fetchFromGitHub,
fetchpatch,
gns3-gui,
gns3-server,
lib,
python3Packages,
qt6,
stdenv,
testers,
writableTmpDirAsHomeHook,
}:
python3Packages.buildPythonApplication (finalAttrs: {
pname = "gns3-gui";
version = "2.2.59";
version = "2.2.61";
pyproject = true;
src = fetchFromGitHub {
owner = "GNS3";
repo = "gns3-gui";
tag = "v${finalAttrs.version}";
hash = "sha256-eYtuGVRfgUFBLxGT0xfiMhbjoMzc6F/VHjI9VN3ADAs=";
hash = "sha256-BgLJC5boDCpQXr//5uans/Efqihmce+HCf4+xJAlxTE=";
};
pythonRelaxDeps = [
"jsonschema"
"psutil"
"sentry-sdk"
];
nativeBuildInputs = [ qt6.wrapQtAppsHook ];
buildInputs = [ qt6.qtwayland ];
buildInputs = [
qt6.qtbase
]
++ lib.optionals stdenv.hostPlatform.isLinux [
qt6.qtwayland
];
build-system = with python3Packages; [ setuptools ];
@@ -40,8 +39,6 @@ python3Packages.buildPythonApplication (finalAttrs: {
psutil
pyqt6
sentry-sdk
setuptools
sip
truststore
qdarkstyle
];
@@ -78,9 +75,9 @@ python3Packages.buildPythonApplication (finalAttrs: {
download the official GNS3 VM).
'';
homepage = "https://www.gns3.com/";
changelog = "https://github.com/GNS3/gns3-gui/releases/tag/v${finalAttrs.version}";
changelog = "https://github.com/GNS3/gns3-gui/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = with lib.maintainers; [ anthonyroussel ];
mainProgram = "gns3";
};

View File

@@ -1,9 +1,10 @@
{
busybox,
fetchFromGitHub,
gns3-server,
lib,
musl,
nixosTests,
pkgsStatic,
python3Packages,
stdenv,
testers,
@@ -12,31 +13,32 @@
writeScript,
}:
let
busybox-static = busybox.override {
enableStatic = true;
useMusl = lib.meta.availableOn stdenv.hostPlatform musl;
};
in
python3Packages.buildPythonApplication (finalAttrs: {
pname = "gns3-server";
version = "2.2.59";
version = "2.2.61";
pyproject = true;
src = fetchFromGitHub {
owner = "GNS3";
repo = "gns3-server";
tag = "v${finalAttrs.version}";
hash = "sha256-xsiwD+o9M/ZwR8t+EA9mWxAlfSKLCvNr1U2qRcmSDzg=";
hash = "sha256-jLDD2sVWwVBjXv6tvxyYDwo2wEdzoH5uUjXc0IpZSq0=";
};
# GNS3 2.3.26 requires a static BusyBox for the Docker integration
prePatch = ''
cp ${pkgsStatic.busybox}/bin/busybox gns3server/compute/docker/resources/bin/busybox
# GNS3 2.2 requires a static BusyBox for the Docker integration (Linux-only)
prePatch = lib.optionalString stdenv.hostPlatform.isLinux ''
cp ${busybox-static}/bin/busybox gns3server/compute/docker/resources/bin/busybox
'';
pythonRelaxDeps = [
"aiofiles"
"aiohttp"
"aiohttp-cors"
"jsonschema"
"platformdirs"
"psutil"
"sentry-sdk"
];
build-system = with python3Packages; [ setuptools ];
@@ -45,7 +47,6 @@ python3Packages.buildPythonApplication (finalAttrs: {
aiofiles
aiohttp
aiohttp-cors
async-generator
async-timeout
distro
jinja2
@@ -57,15 +58,14 @@ python3Packages.buildPythonApplication (finalAttrs: {
py-cpuinfo
sentry-sdk
truststore
yarl
];
postInstall = lib.optionalString (!stdenv.hostPlatform.isWindows) ''
rm $out/bin/gns3loopback
'';
# util-linux (script program) is required for Docker support
makeWrapperArgs = [
# util-linux (script program) is required for Docker support (Linux-only)
makeWrapperArgs = lib.optionals stdenv.hostPlatform.isLinux [
"--suffix"
"PATH"
":"
@@ -88,6 +88,13 @@ python3Packages.buildPythonApplication (finalAttrs: {
# fails on ofborg because of lack of cpu vendor information
"tests/controller/gns3vm/test_virtualbox_gns3_vm.py::test_cpu_vendor_id"
"tests/controller/test_project.py"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Docker and IOU are only supported on Linux
"tests/compute/docker/test_docker_vm.py"
"tests/handlers/api/compute/test_capabilities.py"
"tests/handlers/api/compute/test_docker.py"
"tests/handlers/api/compute/test_iou.py"
];
passthru = {
@@ -109,6 +116,8 @@ python3Packages.buildPythonApplication (finalAttrs: {
'';
};
__darwinAllowLocalNetworking = true;
meta = {
description = "Graphical Network Simulator 3 server";
longDescription = ''
@@ -117,9 +126,9 @@ python3Packages.buildPythonApplication (finalAttrs: {
API.
'';
homepage = "https://www.gns3.com/";
changelog = "https://github.com/GNS3/gns3-server/releases/tag/v${finalAttrs.version}";
changelog = "https://github.com/GNS3/gns3-server/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = with lib.maintainers; [ anthonyroussel ];
mainProgram = "gns3server";
};