nixpkgs/pkgs/by-name/as/asciinema/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
884 B
Nix
Raw Normal View History

2024-07-09 13:53:48 +00:00
{
lib,
python3Packages,
fetchFromGitHub,
2022-06-14 06:55:52 +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;
src = fetchFromGitHub {
owner = "asciinema";
repo = "asciinema";
rev = "v${version}";
2023-11-03 11:20:12 +00:00
hash = "sha256-UegLwpJ+uc9cW3ozLQJsQBjIGD7+vzzwzQFRV5gmDmI=";
};
2024-07-09 13:53:48 +00:00
build-system = [ python3Packages.setuptools ];
postPatch = ''
substituteInPlace tests/pty_test.py \
2024-07-09 13:53:48 +00:00
--replace-fail "python3" "${python3Packages.python.interpreter}"
'';
2024-07-09 13:51:43 +00:00
nativeCheckInputs = [ python3Packages.pytestCheckHook ];
2023-08-17 03:06:17 +00:00
meta = {
description = "Terminal session recorder and the best companion of asciinema.org";
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;
mainProgram = "asciinema";
};
}