@@ -0,0 +1,37 @@
1+{ stdenv, python34Packages, fetchFromGitHub }:
2+
3+python34Packages.buildPythonPackage rec {
4+ name = "${pname}-${version}";
5+ pname = "gns3-server";
6+ version = "2.0.3";
7+
8+ src = fetchFromGitHub {
9+ owner = "GNS3";
10+ repo = pname;
11+ rev = "v${version}";
12+ sha256 = "1c7mzj1r2zh90a7vs3s17jakfp9s43b8nnj29rpamqxvl3qhbdy7";
13+ };
14+
15+ propagatedBuildInputs = with python34Packages; [
16+ aiohttp jinja2 psutil zipstream aiohttp-cors raven jsonschema
17+ ];
18+
19+ # Requires network access
20+ doCheck = false;
21+
22+ postInstall = ''
23+ rm $out/bin/gns3loopback # For windows only
24+ '';
25+ meta = with stdenv.lib; {
26+ description = "Graphical Network Simulator 3 server";
27+ longDescription = ''
28+ The GNS3 server manages emulators such as Dynamips, VirtualBox or
29+ Qemu/KVM. Clients like the GNS3 GUI control the server using a HTTP REST
30+ API.
31+ '';
32+ homepage = "https://www.gns3.com/";
33+ license = licenses.gpl3Plus;
34+ platforms = platforms.linux;
35+ maintainers = with maintainers; [ primeos ];
36+ };
37+}