about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-15 16:04:15 -0400
committerFrederik Rietdijk <fridh@fridh.nl>2018-10-17 07:46:56 +0200
commit076857913fa207c5842d00b3a531171fa16067c2 (patch)
treeb2abbf77a3c972fd7001676cf5361eb8238601bb
parent56739bc25feccb9d83f93d8fa183028032cdef88 (diff)
downloadnixlib-076857913fa207c5842d00b3a531171fa16067c2.tar
nixlib-076857913fa207c5842d00b3a531171fa16067c2.tar.gz
nixlib-076857913fa207c5842d00b3a531171fa16067c2.tar.bz2
nixlib-076857913fa207c5842d00b3a531171fa16067c2.tar.lz
nixlib-076857913fa207c5842d00b3a531171fa16067c2.tar.xz
nixlib-076857913fa207c5842d00b3a531171fa16067c2.tar.zst
nixlib-076857913fa207c5842d00b3a531171fa16067c2.zip
pythonPackages.gateone: refactor move to python-modules
-rw-r--r--pkgs/development/python-modules/gateone/default.nix35
-rw-r--r--pkgs/top-level/python-packages.nix21
2 files changed, 36 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/gateone/default.nix b/pkgs/development/python-modules/gateone/default.nix
new file mode 100644
index 000000000000..136c089ee4b6
--- /dev/null
+++ b/pkgs/development/python-modules/gateone/default.nix
@@ -0,0 +1,35 @@
+{ stdenv
+, buildPythonPackage
+, fetchFromGitHub
+, tornado
+, futures
+, html5lib
+, pkgs
+, isPy3k
+}:
+
+buildPythonPackage rec {
+  name = "gateone-1.2-0d57c3";
+  disabled = isPy3k;
+
+  src = pkgs.fetchFromGitHub {
+    rev = "1d0e8037fbfb7c270f3710ce24154e24b7031bea";
+    owner= "liftoff";
+    repo = "GateOne";
+    sha256 = "1ghrawlqwv7wnck6alqpbwy9mpv0y21cw2jirrvsxaracmvgk6vv";
+  };
+
+  propagatedBuildInputs = [tornado futures html5lib pkgs.openssl pkgs.cacert pkgs.openssh];
+
+  postInstall=''
+    cp -R "$out/gateone/"* $out/lib/python2.7/site-packages/gateone
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://liftoffsoftware.com/;
+    description = "GateOne is a web-based terminal emulator and SSH client";
+    maintainers = with maintainers; [ tomberek ];
+    license = licenses.gpl3;
+  };
+
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index d846e9b99ec4..4828b6679113 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -1802,26 +1802,7 @@ in {
 
   functools32 = callPackage ../development/python-modules/functools32 { };
 
-  gateone = buildPythonPackage rec {
-    name = "gateone-1.2-0d57c3";
-    disabled = ! isPy27;
-    src = pkgs.fetchFromGitHub {
-      rev = "1d0e8037fbfb7c270f3710ce24154e24b7031bea";
-      owner= "liftoff";
-      repo = "GateOne";
-      sha256 = "1ghrawlqwv7wnck6alqpbwy9mpv0y21cw2jirrvsxaracmvgk6vv";
-    };
-    propagatedBuildInputs = with self; [tornado futures html5lib pkgs.openssl pkgs.cacert pkgs.openssh];
-    meta = {
-      homepage = https://liftoffsoftware.com/;
-      description = "GateOne is a web-based terminal emulator and SSH client";
-      maintainers = with maintainers; [ tomberek ];
-
-    };
-    postInstall=''
-    cp -R "$out/gateone/"* $out/lib/python2.7/site-packages/gateone
-    '';
-  };
+  gateone = callPackage ../development/python-modules/gateone { };
 
   gcutil = buildPythonPackage rec {
     name = "gcutil-1.16.1";