asciinema: 20160520 -> 1.3.0

See https://github.com/NixOS/nixpkgs/pull/17807
This commit is contained in:
Frederik Rietdijk 2016-08-19 12:32:22 +02:00
parent f33aebfbf3
commit 8c1a1a11bf
2 changed files with 23 additions and 37 deletions

View File

@ -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}"; name = "asciinema-${version}";
version = "20160520-${stdenv.lib.strings.substring 0 7 rev}"; version = "1.3.0";
rev = "6683bdaa263d0ce3645b87fe54aa87276b89988a";
buildInputs = with pythonPackages; [ nose ];
propagatedBuildInputs = with pythonPackages; [ requests2 ];
goPackagePath = "github.com/asciinema/asciinema"; src = fetchFromGitHub {
owner = "asciinema";
repo = "asciinema";
rev = "v${version}";
sha256 = "1hx7xipyy9w72iwlawldlif9qk3f7b8jx8c1wcx114pqbjz5d347";
};
src = fetchgit { checkPhase = ''
inherit rev; nosetests
url = "https://github.com/asciinema/asciinema"; '';
sha256 = "08jyvnjpd5jdgyvkly9fswac4p10bqim5v4rhmivpg4y8pbcmxkz";
meta = {
description = "Terminal session recorder and the best companion of asciinema.org";
homepage = https://asciinema.org/;
license = with lib.licenses; [ gpl3 ];
}; };
} }

View File

@ -1167,33 +1167,6 @@ in modules // {
}; };
}); });
asciinema = buildPythonPackage rec {
name = "asciinema-${version}";
version = "1.3.0";
disabled = pythonOlder "3.3";
buildInputs = with self; [ nose ];
propagatedBuildInputs = with self; [ requests2 ];
src = pkgs.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 licenses; [ gpl3 ];
};
};
astroid = buildPythonPackage rec { astroid = buildPythonPackage rec {
name = "astroid-1.4.4"; name = "astroid-1.4.4";