2018-07-03 17:17:31 +01:00
|
|
|
{ lib, python3Packages, fetchFromGitHub, glibcLocales }:
|
2016-06-02 19:55:19 +01:00
|
|
|
|
2016-08-19 11:32:22 +01:00
|
|
|
let
|
|
|
|
pythonPackages = python3Packages;
|
|
|
|
in pythonPackages.buildPythonApplication rec {
|
2016-06-02 19:55:19 +01:00
|
|
|
name = "asciinema-${version}";
|
2018-07-03 17:17:31 +01:00
|
|
|
version = "2.0.1";
|
2016-06-02 19:55:19 +01:00
|
|
|
|
2016-08-19 11:32:22 +01:00
|
|
|
buildInputs = with pythonPackages; [ nose ];
|
2017-05-07 11:55:45 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ requests ];
|
2016-06-02 19:55:19 +01:00
|
|
|
|
2016-08-19 11:32:22 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asciinema";
|
|
|
|
repo = "asciinema";
|
|
|
|
rev = "v${version}";
|
2018-07-03 17:17:31 +01:00
|
|
|
sha256 = "09m9agkslrbm36y8pjqhg5nmyz9hppjyhafhzpglnadhfgwqzznr";
|
2016-08-19 11:32:22 +01:00
|
|
|
};
|
|
|
|
|
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 ];
|
|
|
|
|
2016-08-19 11:32:22 +01:00
|
|
|
checkPhase = ''
|
2018-07-03 17:17:31 +01:00
|
|
|
LC_ALL=en_US.UTF-8 nosetests
|
2016-08-19 11:32:22 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Terminal session recorder and the best companion of asciinema.org";
|
|
|
|
homepage = https://asciinema.org/;
|
|
|
|
license = with lib.licenses; [ gpl3 ];
|
2016-06-02 19:55:19 +01:00
|
|
|
};
|
|
|
|
}
|
2016-08-19 11:32:22 +01:00
|
|
|
|