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

37 lines
900 B
Nix
Raw Normal View History

2018-07-03 17:17:31 +01:00
{ lib, python3Packages, fetchFromGitHub, glibcLocales }:
let
pythonPackages = python3Packages;
in pythonPackages.buildPythonApplication rec {
name = "asciinema-${version}";
2018-07-03 17:17:31 +01:00
version = "2.0.1";
buildInputs = with pythonPackages; [ nose ];
propagatedBuildInputs = with pythonPackages; [ requests ];
src = fetchFromGitHub {
owner = "asciinema";
repo = "asciinema";
rev = "v${version}";
2018-07-03 17:17:31 +01:00
sha256 = "09m9agkslrbm36y8pjqhg5nmyz9hppjyhafhzpglnadhfgwqzznr";
};
2017-04-23 03:11:26 +01:00
patchPhase = ''
# disable one test which is failing with -> OSError: out of pty devices
rm tests/pty_recorder_test.py
'';
2018-07-03 17:17:31 +01:00
checkInputs = [ glibcLocales ];
checkPhase = ''
2018-07-03 17:17:31 +01: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 ];
};
}