nixpkgs/pkgs/tools/misc/asciinema/default.nix

27 lines
627 B
Nix
Raw Normal View History

2018-07-03 16:17:31 +00:00
{ lib, python3Packages, fetchFromGitHub, glibcLocales }:
2018-06-03 08:59:58 +00:00
python3Packages.buildPythonApplication rec {
pname = "asciinema";
version = "2.0.2";
src = fetchFromGitHub {
owner = "asciinema";
repo = "asciinema";
rev = "v${version}";
sha256 = "1a2pysxnp6icyd08mgf66xr6f6j0irnfxdpf3fmzcz31ix7l9kc4";
};
2019-01-14 13:14:38 +00:00
checkInputs = [ glibcLocales python3Packages.nose ];
2018-07-03 16:17:31 +00:00
checkPhase = ''
2018-07-03 16:17:31 +00:00
LC_ALL=en_US.UTF-8 nosetests
'';
meta = {
description = "Terminal session recorder and the best companion of asciinema.org";
homepage = "https://asciinema.org/";
license = with lib.licenses; [ gpl3 ];
};
}