gns3-gui,gns3-server: 2.2.47 -> 2.2.49 (#326662)

This commit is contained in:
Peder Bergebakken Sundt 2024-09-17 01:35:51 +02:00 committed by GitHub
commit 02b583705c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 59 additions and 55 deletions

View File

@ -1,38 +1,38 @@
{ callPackage
, libsForQt5
, python311
, python311Packages
}:
let
mkGui = args: callPackage (import ./gui.nix (args)) {
inherit (libsForQt5) wrapQtAppsHook;
python3 = python311;
python3Packages = python311Packages;
};
mkServer = args: callPackage (import ./server.nix (args)) { };
in {
in
{
guiStable = mkGui {
channel = "stable";
version = "2.2.47";
hash = "sha256-6UXQTPkRHbtNX6RzWMakCsO9YpkFlWliNnm+mZ4wuZA=";
version = "2.2.49";
hash = "sha256-hvLJ4VilcgtpxHeboeSUuGAco9LEnUB8J6vy/ZPajbU=";
};
guiPreview = mkGui {
channel = "stable";
version = "2.2.47";
hash = "sha256-6UXQTPkRHbtNX6RzWMakCsO9YpkFlWliNnm+mZ4wuZA=";
version = "2.2.49";
hash = "sha256-hvLJ4VilcgtpxHeboeSUuGAco9LEnUB8J6vy/ZPajbU=";
};
serverStable = mkServer {
channel = "stable";
version = "2.2.47";
hash = "sha256-iZ/1qACPLe7r1cZMhJbFRjVt/FlVgadBgp9tJwvYSi0=";
version = "2.2.49";
hash = "sha256-fI49MxA6b2kPkUihLl32a6jo8oHcEwDEjmvSVDj8/So=";
};
serverPreview = mkServer {
channel = "stable";
version = "2.2.47";
hash = "sha256-iZ/1qACPLe7r1cZMhJbFRjVt/FlVgadBgp9tJwvYSi0=";
version = "2.2.49";
hash = "sha256-fI49MxA6b2kPkUihLl32a6jo8oHcEwDEjmvSVDj8/So=";
};
}

View File

@ -1,33 +1,37 @@
{ channel
, version
, hash
{
channel,
version,
hash,
}:
{ lib
, python3
, fetchFromGitHub
, qt5
, wrapQtAppsHook
, testers
, gns3-gui
{
fetchFromGitHub,
gns3-gui,
lib,
python3Packages,
qt5,
testers,
wrapQtAppsHook,
}:
python3.pkgs.buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "gns3-gui";
inherit version;
src = fetchFromGitHub {
inherit hash;
owner = "GNS3";
repo = pname;
repo = "gns3-gui";
rev = "refs/tags/v${version}";
};
nativeBuildInputs = with python3.pkgs; [
wrapQtAppsHook
];
nativeBuildInputs = with python3Packages; [ wrapQtAppsHook ];
propagatedBuildInputs = with python3.pkgs; [
build-system = with python3Packages; [ setuptools ];
propagatedBuildInputs = [ qt5.qtwayland ];
dependencies = with python3Packages; [
distro
jsonschema
psutil
@ -36,7 +40,6 @@ python3.pkgs.buildPythonApplication rec {
sip
(pyqt5.override { withWebSockets = true; })
truststore
qt5.qtwayland
] ++ lib.optionals (pythonOlder "3.9") [
importlib-resources
];
@ -49,9 +52,7 @@ python3.pkgs.buildPythonApplication rec {
doCheck = true;
checkInputs = with python3.pkgs; [
pytestCheckHook
];
checkInputs = with python3Packages; [ pytestCheckHook ];
preCheck = ''
export HOME=$(mktemp -d)
@ -65,7 +66,7 @@ python3.pkgs.buildPythonApplication rec {
command = "${lib.getExe gns3-gui} --version";
};
meta = with lib; {
meta = {
description = "Graphical Network Simulator 3 GUI (${channel} release)";
longDescription = ''
Graphical user interface for controlling the GNS3 network simulator. This
@ -74,9 +75,9 @@ python3.pkgs.buildPythonApplication rec {
'';
homepage = "https://www.gns3.com/";
changelog = "https://github.com/GNS3/gns3-gui/releases/tag/v${version}";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ anthonyroussel ];
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ anthonyroussel ];
mainProgram = "gns3";
};
}

View File

@ -1,17 +1,19 @@
{ channel
, version
, hash
{
channel,
version,
hash,
}:
{ lib
, python3Packages
, fetchFromGitHub
, pkgsStatic
, stdenv
, nixosTests
, testers
, util-linux
, gns3-server
{
fetchFromGitHub,
gns3-server,
lib,
nixosTests,
pkgsStatic,
python3Packages,
stdenv,
testers,
util-linux,
}:
python3Packages.buildPythonApplication {
@ -30,7 +32,9 @@ python3Packages.buildPythonApplication {
cp ${pkgsStatic.busybox}/bin/busybox gns3server/compute/docker/resources/bin/busybox
'';
propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
aiofiles
aiohttp
aiohttp-cors
@ -44,7 +48,6 @@ python3Packages.buildPythonApplication {
psutil
py-cpuinfo
sentry-sdk
setuptools
truststore
yarl
] ++ lib.optionals (pythonOlder "3.9") [
@ -69,7 +72,7 @@ python3Packages.buildPythonApplication {
checkInputs = with python3Packages; [
pytest-aiohttp
pytest-rerunfailures
(pytestCheckHook.override { pytest = pytest_7; })
pytestCheckHook
];
pytestFlagsArray = [
@ -87,7 +90,7 @@ python3Packages.buildPythonApplication {
};
};
meta = with lib; {
meta = {
description = "Graphical Network Simulator 3 server (${channel} release)";
longDescription = ''
The GNS3 server manages emulators such as Dynamips, VirtualBox or
@ -96,9 +99,9 @@ python3Packages.buildPythonApplication {
'';
homepage = "https://www.gns3.com/";
changelog = "https://github.com/GNS3/gns3-server/releases/tag/v${version}";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ anthonyroussel ];
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ anthonyroussel ];
mainProgram = "gns3server";
};
}