2017-09-16 13:46:00 +01:00
|
|
|
{ stdenv, python3Packages, fetchFromGitHub }:
|
2017-08-06 16:21:43 +01:00
|
|
|
|
2017-09-16 13:46:00 +01:00
|
|
|
python3Packages.buildPythonPackage rec {
|
2017-08-06 16:21:43 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "gns3-server";
|
2017-09-16 13:46:00 +01:00
|
|
|
version = "2.1.0rc1";
|
2017-08-06 16:21:43 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GNS3";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2017-09-16 13:46:00 +01:00
|
|
|
sha256 = "181689fpjxq4hy2lyxk4zciqhgnhj5srvb4xsxdlbf68n89fj2zf";
|
2017-08-06 16:21:43 +01:00
|
|
|
};
|
|
|
|
|
2017-09-16 13:46:00 +01:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
aiohttp jinja2 psutil zipstream aiohttp-cors raven jsonschema yarl typing
|
|
|
|
prompt_toolkit
|
2017-08-06 16:21:43 +01:00
|
|
|
];
|
|
|
|
|
2017-09-16 13:46:00 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i 's/yarl>=0.11,<0.12/yarl/g' requirements.txt
|
|
|
|
'';
|
|
|
|
|
2017-08-06 16:21:43 +01:00
|
|
|
# Requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm $out/bin/gns3loopback # For windows only
|
|
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Graphical Network Simulator 3 server";
|
|
|
|
longDescription = ''
|
|
|
|
The GNS3 server manages emulators such as Dynamips, VirtualBox or
|
|
|
|
Qemu/KVM. Clients like the GNS3 GUI control the server using a HTTP REST
|
|
|
|
API.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.gns3.com/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|