2016-08-19 11:32:22 +01:00
|
|
|
{ lib, python3Packages, fetchFromGitHub }:
|
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-02-24 23:37:31 +00:00
|
|
|
version = "2.0.0";
|
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-02-24 23:37:31 +00:00
|
|
|
sha256 = "1f92hv9w58jf1f7igspjxvrxqn3n21kgya2zb56spqyydr4jzwdk";
|
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
|
|
|
|
'';
|
|
|
|
|
2016-08-19 11:32:22 +01:00
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
|