2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3Packages,
|
|
|
|
fetchFromGitHub,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
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";
|
2024-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
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
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ python3Packages.setuptools ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tests/pty_test.py \
|
2024-07-27 06:49:29 +00:00
|
|
|
--replace-fail "python3" "${python3Packages.python.interpreter}"
|
2022-06-16 17:23:12 +00:00
|
|
|
'';
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
nativeCheckInputs = [ python3Packages.pytestCheckHook ];
|
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 ];
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2023-08-22 20:05:09 +00:00
|
|
|
platforms = lib.platforms.all;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "asciinema";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|