1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/misc/asciinema/default.nix
2018-08-08 02:20:54 +02:00

35 lines
850 B
Nix

{ lib, python3Packages, fetchFromGitHub, glibcLocales }:
python3Packages.buildPythonApplication rec {
pname = "asciinema";
version = "2.0.1";
buildInputs = with python3Packages; [ nose ];
propagatedBuildInputs = with python3Packages; [ requests ];
src = fetchFromGitHub {
owner = "asciinema";
repo = "asciinema";
rev = "v${version}";
sha256 = "09m9agkslrbm36y8pjqhg5nmyz9hppjyhafhzpglnadhfgwqzznr";
};
patchPhase = ''
# disable one test which is failing with -> OSError: out of pty devices
rm tests/pty_recorder_test.py
'';
checkInputs = [ glibcLocales ];
checkPhase = ''
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 ];
};
}