diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2017-09-22 21:18:37 +0200 |
---|---|---|
committer | Michael Weiss <dev.primeos@gmail.com> | 2017-09-22 21:30:38 +0200 |
commit | 5257232ac7a59dc3c7598042f0d21dc4ae60ea14 (patch) | |
tree | afa5fc5f76dc061f6e2fdc5e70424b5688c66155 /pkgs/applications/networking/gns3/gui.nix | |
parent | 1acf6716aafc863ce33e3b7b431c1defbbd88275 (diff) | |
download | nixpkgs-5257232ac7a59dc3c7598042f0d21dc4ae60ea14.tar nixpkgs-5257232ac7a59dc3c7598042f0d21dc4ae60ea14.tar.gz nixpkgs-5257232ac7a59dc3c7598042f0d21dc4ae60ea14.tar.bz2 nixpkgs-5257232ac7a59dc3c7598042f0d21dc4ae60ea14.tar.lz nixpkgs-5257232ac7a59dc3c7598042f0d21dc4ae60ea14.tar.xz nixpkgs-5257232ac7a59dc3c7598042f0d21dc4ae60ea14.tar.zst nixpkgs-5257232ac7a59dc3c7598042f0d21dc4ae60ea14.zip |
gns3: "Improve" the packaging
This is "a bit" hacky tho... The improvement is that it now covers the stable as well as the preview releases and doesn't require Python 3.4 anymore.
Diffstat (limited to 'pkgs/applications/networking/gns3/gui.nix')
-rw-r--r-- | pkgs/applications/networking/gns3/gui.nix | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/pkgs/applications/networking/gns3/gui.nix b/pkgs/applications/networking/gns3/gui.nix index 284c4f8cee1..1352774953d 100644 --- a/pkgs/applications/networking/gns3/gui.nix +++ b/pkgs/applications/networking/gns3/gui.nix @@ -1,19 +1,22 @@ -{ stdenv, python34Packages, fetchFromGitHub }: +{ stable, branch, version, sha256Hash }: -# TODO: Python 3.6 was failing -python34Packages.buildPythonPackage rec { +{ stdenv, python3Packages, fetchFromGitHub }: + +let + pythonPackages = python3Packages; + +in pythonPackages.buildPythonPackage rec { name = "${pname}-${version}"; pname = "gns3-gui"; - version = "2.0.3"; src = fetchFromGitHub { owner = "GNS3"; repo = pname; rev = "v${version}"; - sha256 = "10qp6430md8d0h2wamgfaq7pai59mqmcw6sw3i1gvb20m0avvsvb"; + sha256 = sha256Hash; }; - propagatedBuildInputs = with python34Packages; [ + propagatedBuildInputs = with pythonPackages; [ raven psutil jsonschema # tox for check # Runtime dependencies sip pyqt5 @@ -22,11 +25,13 @@ python34Packages.buildPythonPackage rec { doCheck = false; # Failing meta = with stdenv.lib; { - description = "Graphical Network Simulator"; - #longDescription = '' - # ... - #''; - homepage = "https://www.gns3.com/"; + description = "Graphical Network Simulator 3 GUI (${branch} release)"; + longDescription = '' + Graphical user interface for controlling the GNS3 network simulator. This + requires access to a local or remote GNS3 server (it's recommended to + download the official GNS3 VM). + ''; + homepage = https://www.gns3.com/; license = licenses.gpl3Plus; platforms = platforms.linux; maintainers = with maintainers; [ primeos ]; |