2024-07-09 13:53:48 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3Packages,
|
|
|
|
fetchFromGitHub,
|
2022-06-14 06:55:52 +00:00
|
|
|
}:
|
2016-06-02 18:55:19 +00:00
|
|
|
|
2018-06-03 08:59:58 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "asciinema";
|
2023-11-03 11:20:12 +00:00
|
|
|
version = "2.4.0";
|
2024-07-09 13:53:48 +00:00
|
|
|
pyproject = true;
|
2016-06-02 18:55:19 +00:00
|
|
|
|
2016-08-19 10:32:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asciinema";
|
|
|
|
repo = "asciinema";
|
|
|
|
rev = "v${version}";
|
2023-11-03 11:20:12 +00:00
|
|
|
hash = "sha256-UegLwpJ+uc9cW3ozLQJsQBjIGD7+vzzwzQFRV5gmDmI=";
|
2016-08-19 10:32:22 +00:00
|
|
|
};
|
|
|
|
|
2024-07-09 13:53:48 +00:00
|
|
|
build-system = [ python3Packages.setuptools ];
|
2022-09-16 22:33:23 +00:00
|
|
|
|
2022-06-11 21:31:31 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tests/pty_test.py \
|
2024-07-09 13:53:48 +00:00
|
|
|
--replace-fail "python3" "${python3Packages.python.interpreter}"
|
2022-06-11 21:31:31 +00:00
|
|
|
'';
|
|
|
|
|
2024-07-09 13:51:43 +00:00
|
|
|
nativeCheckInputs = [ python3Packages.pytestCheckHook ];
|
2016-08-19 10:32:22 +00:00
|
|
|
|
2023-08-17 03:06:17 +00:00
|
|
|
meta = {
|
2016-08-19 10:32:22 +00:00
|
|
|
description = "Terminal session recorder and the best companion of asciinema.org";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://asciinema.org/";
|
2023-08-17 03:06:17 +00:00
|
|
|
license = with lib.licenses; [ gpl3Plus ];
|
2024-09-10 19:02:41 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2023-08-17 03:06:17 +00:00
|
|
|
platforms = lib.platforms.all;
|
2023-12-20 02:45:17 +00:00
|
|
|
mainProgram = "asciinema";
|
2016-06-02 18:55:19 +00:00
|
|
|
};
|
|
|
|
}
|