2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glibcLocales
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "asciinema";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.4.0";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asciinema";
|
|
|
|
repo = "asciinema";
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-UegLwpJ+uc9cW3ozLQJsQBjIGD7+vzzwzQFRV5gmDmI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
python3Packages.setuptools
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tests/pty_test.py \
|
|
|
|
--replace "python3" "${python3Packages.python}/bin/python"
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
glibcLocales
|
|
|
|
python3Packages.nose
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
2023-08-22 20:05:09 +00:00
|
|
|
LC_ALL=en_US.UTF-8 nosetests -v tests/config_test.py
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Terminal session recorder and the best companion of asciinema.org";
|
|
|
|
homepage = "https://asciinema.org/";
|
2023-08-22 20:05:09 +00:00
|
|
|
license = with lib.licenses; [ gpl3Plus ];
|
|
|
|
maintainers = with lib.maintainers; [ eclairevoyant ];
|
|
|
|
platforms = lib.platforms.all;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "asciinema";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|