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}";
|
2016-08-19 11:32:22 +01:00
|
|
|
version = "1.3.0";
|
2016-06-02 19:55:19 +01:00
|
|
|
|
2016-08-19 11:32:22 +01:00
|
|
|
buildInputs = with pythonPackages; [ nose ];
|
|
|
|
propagatedBuildInputs = with pythonPackages; [ requests2 ];
|
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}";
|
|
|
|
sha256 = "1hx7xipyy9w72iwlawldlif9qk3f7b8jx8c1wcx114pqbjz5d347";
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|