about summary refs log tree commit diff
path: root/pkgs/tools/misc/asciinema
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2016-08-19 12:32:22 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2016-08-19 12:32:22 +0200
commit8c1a1a11bf7492dc6c2882400430d778c2865c77 (patch)
tree4a76f4be26345de05fc2ab7f380253479479c33c /pkgs/tools/misc/asciinema
parentf33aebfbf316d647f1d054486fe2ae3e34a2ad0a (diff)
asciinema: 20160520 -> 1.3.0
See https://github.com/NixOS/nixpkgs/pull/17807
Diffstat (limited to 'pkgs/tools/misc/asciinema')
-rw-r--r--pkgs/tools/misc/asciinema/default.nix33
1 files changed, 23 insertions, 10 deletions
diff --git a/pkgs/tools/misc/asciinema/default.nix b/pkgs/tools/misc/asciinema/default.nix
index cee4ec925c01d..da96bde2fd521 100644
--- a/pkgs/tools/misc/asciinema/default.nix
+++ b/pkgs/tools/misc/asciinema/default.nix
@@ -1,16 +1,29 @@
-{ stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
+{ lib, python3Packages, fetchFromGitHub }:
 
-buildGoPackage rec {
+let
+  pythonPackages = python3Packages;
+in pythonPackages.buildPythonApplication rec {
   name = "asciinema-${version}";
-  version = "20160520-${stdenv.lib.strings.substring 0 7 rev}";
-  rev = "6683bdaa263d0ce3645b87fe54aa87276b89988a";
+  version = "1.3.0";
 
-  
-  goPackagePath = "github.com/asciinema/asciinema";
+  buildInputs = with pythonPackages; [ nose ];
+  propagatedBuildInputs = with pythonPackages; [ requests2 ];
 
-  src = fetchgit {
-    inherit rev;
-    url = "https://github.com/asciinema/asciinema";
-    sha256 = "08jyvnjpd5jdgyvkly9fswac4p10bqim5v4rhmivpg4y8pbcmxkz";
+  src = fetchFromGitHub {
+    owner = "asciinema";
+    repo = "asciinema";
+    rev = "v${version}";
+    sha256 = "1hx7xipyy9w72iwlawldlif9qk3f7b8jx8c1wcx114pqbjz5d347";
+  };
+
+  checkPhase = ''
+    nosetests
+  '';
+
+  meta = {
+    description = "Terminal session recorder and the best companion of asciinema.org";
+    homepage = https://asciinema.org/;
+    license = with lib.licenses; [ gpl3 ];
   };
 }
+