2022-06-14 08:55:52 +02:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glibcLocales
|
|
|
|
}:
|
2016-06-02 20:55:19 +02:00
|
|
|
|
2018-06-03 10:59:58 +02:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "asciinema";
|
2022-06-11 23:31:31 +02:00
|
|
|
version = "2.2.0";
|
|
|
|
format = "pyproject";
|
2016-06-02 20:55:19 +02:00
|
|
|
|
2016-08-19 12:32:22 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asciinema";
|
|
|
|
repo = "asciinema";
|
|
|
|
rev = "v${version}";
|
2022-06-14 08:55:52 +02:00
|
|
|
hash = "sha256-ioSNd0Fjk2Fp05lk3HeokIjNYGU0jQEaIDfcFB18mV0=";
|
2016-08-19 12:32:22 +02:00
|
|
|
};
|
|
|
|
|
2022-09-17 00:33:23 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
python3Packages.setuptools
|
|
|
|
];
|
|
|
|
|
2022-06-11 23:31:31 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tests/pty_test.py \
|
|
|
|
--replace "python3" "${python3Packages.python}/bin/python"
|
|
|
|
'';
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = [
|
2022-06-14 08:55:52 +02:00
|
|
|
glibcLocales
|
|
|
|
python3Packages.nose
|
|
|
|
];
|
2018-07-03 18:17:31 +02:00
|
|
|
|
2016-08-19 12:32:22 +02:00
|
|
|
checkPhase = ''
|
2018-07-03 18:17:31 +02:00
|
|
|
LC_ALL=en_US.UTF-8 nosetests
|
2016-08-19 12:32:22 +02:00
|
|
|
'';
|
|
|
|
|
2022-06-14 08:55:52 +02:00
|
|
|
meta = with lib; {
|
2016-08-19 12:32:22 +02:00
|
|
|
description = "Terminal session recorder and the best companion of asciinema.org";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://asciinema.org/";
|
2022-06-14 08:55:52 +02:00
|
|
|
license = with licenses; [ gpl3Plus ];
|
|
|
|
maintainers = with maintainers; [ ];
|
2016-06-02 20:55:19 +02:00
|
|
|
};
|
|
|
|
}
|