Merge pull request #200598 from anthonyroussel/gns3_2_2_35
This commit is contained in:
commit
af8a02eb99
3 changed files with 11 additions and 44 deletions
|
@ -3,7 +3,7 @@
|
|||
}:
|
||||
|
||||
let
|
||||
stableVersion = "2.2.34";
|
||||
stableVersion = "2.2.35.1";
|
||||
previewVersion = stableVersion;
|
||||
addVersion = args:
|
||||
let version = if args.stable then stableVersion else previewVersion;
|
||||
|
@ -12,23 +12,18 @@ let
|
|||
extraArgs = rec {
|
||||
mkOverride = attrname: version: sha256:
|
||||
self: super: {
|
||||
${attrname} = super.${attrname}.overridePythonAttrs (oldAttrs: {
|
||||
"${attrname}" = super."${attrname}".overridePythonAttrs (oldAttrs: {
|
||||
inherit version;
|
||||
src = oldAttrs.src.override {
|
||||
inherit version sha256;
|
||||
};
|
||||
});
|
||||
};
|
||||
commonOverrides = [
|
||||
(self: super: {
|
||||
jsonschema = super.jsonschema_3;
|
||||
})
|
||||
];
|
||||
};
|
||||
mkGui = args: libsForQt5.callPackage (import ./gui.nix (addVersion args // extraArgs)) { };
|
||||
mkServer = args: callPackage (import ./server.nix (addVersion args // extraArgs)) { };
|
||||
guiSrcHash = "sha256-1YsVMrUYI46lJZbPjf3jnOFDr9Hp54m8DVMz9y4dvVc=";
|
||||
serverSrcHash = "sha256-h4d9s+QvqN/EFV97rPRhQiyC06wkZ9C2af9gx1Z/x/8=";
|
||||
guiSrcHash = "sha256-iVvADwIp01HeZoDayvH1dilYRHRkRBTBR3Fh395JBq0=";
|
||||
serverSrcHash = "sha256-41dbiSjvmsDNYr9/rRkeQVOnPSVND34xx1SNknCgHfc=";
|
||||
|
||||
in {
|
||||
guiStable = mkGui {
|
||||
|
|
|
@ -3,25 +3,15 @@
|
|||
, version
|
||||
, sha256Hash
|
||||
, mkOverride
|
||||
, commonOverrides
|
||||
}:
|
||||
|
||||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
, wrapQtAppsHook
|
||||
, packageOverrides ? self: super: {}
|
||||
}:
|
||||
|
||||
let
|
||||
defaultOverrides = commonOverrides ++ [
|
||||
];
|
||||
|
||||
python = python3.override {
|
||||
packageOverrides = lib.foldr lib.composeExtensions (self: super: { }) ([ packageOverrides ] ++ defaultOverrides);
|
||||
};
|
||||
|
||||
in python.pkgs.buildPythonPackage rec {
|
||||
python3.pkgs.buildPythonPackage rec {
|
||||
pname = "gns3-gui";
|
||||
inherit version;
|
||||
|
||||
|
@ -36,7 +26,7 @@ in python.pkgs.buildPythonPackage rec {
|
|||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python.pkgs; [
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
distro
|
||||
jsonschema
|
||||
psutil
|
||||
|
@ -55,10 +45,8 @@ in python.pkgs.buildPythonPackage rec {
|
|||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "sentry-sdk==" "sentry-sdk>=" \
|
||||
--replace "psutil==" "psutil>=" \
|
||||
--replace "distro==" "distro>=" \
|
||||
--replace "setuptools==" "setuptools>="
|
||||
--replace "jsonschema>=4.17.0,<4.18" "jsonschema"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -3,24 +3,14 @@
|
|||
, version
|
||||
, sha256Hash
|
||||
, mkOverride
|
||||
, commonOverrides
|
||||
}:
|
||||
|
||||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
, packageOverrides ? self: super: {}
|
||||
}:
|
||||
|
||||
let
|
||||
defaultOverrides = commonOverrides ++ [
|
||||
];
|
||||
|
||||
python = python3.override {
|
||||
packageOverrides = lib.foldr lib.composeExtensions (self: super: { }) ([ packageOverrides ] ++ defaultOverrides);
|
||||
};
|
||||
|
||||
in python.pkgs.buildPythonApplication {
|
||||
python3.pkgs.buildPythonApplication {
|
||||
pname = "gns3-server";
|
||||
inherit version;
|
||||
|
||||
|
@ -33,23 +23,17 @@ in python.pkgs.buildPythonApplication {
|
|||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "aiohttp==" "aiohttp>=" \
|
||||
--replace "aiofiles==" "aiofiles>=" \
|
||||
--replace "Jinja2==" "Jinja2>=" \
|
||||
--replace "sentry-sdk==" "sentry-sdk>=" \
|
||||
--replace "async-timeout==" "async-timeout>=" \
|
||||
--replace "psutil==" "psutil>=" \
|
||||
--replace "distro==" "distro>=" \
|
||||
--replace "py-cpuinfo==" "py-cpuinfo>=" \
|
||||
--replace "setuptools==" "setuptools>="
|
||||
--replace "jsonschema>=4.17.0,<4.18" "jsonschema"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with python.pkgs; [
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
aiofiles
|
||||
aiohttp
|
||||
aiohttp-cors
|
||||
async_generator
|
||||
distro
|
||||
importlib-resources
|
||||
jinja2
|
||||
jsonschema
|
||||
multidict
|
||||
|
|
Loading…
Reference in a new issue