nixpkgs/pkgs/tools/misc/asciinema/default.nix

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

46 lines
1005 B
Nix
Raw Normal View History

2022-06-14 06:55:52 +00:00
{ lib
, python3Packages
, fetchFromGitHub
, glibcLocales
}:
2018-06-03 08:59:58 +00:00
python3Packages.buildPythonApplication rec {
pname = "asciinema";
2023-08-17 03:06:17 +00:00
version = "2.3.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "asciinema";
repo = "asciinema";
rev = "v${version}";
2023-08-17 03:06:17 +00:00
hash = "sha256-1B2A2lfLeDHgD4tg3M5IIyHxBQ0cHuWDrQ3bUKAIFlc=";
};
nativeBuildInputs = [
python3Packages.setuptools
];
postPatch = ''
substituteInPlace tests/pty_test.py \
--replace "python3" "${python3Packages.python}/bin/python"
'';
nativeCheckInputs = [
2022-06-14 06:55:52 +00:00
glibcLocales
python3Packages.nose
];
2018-07-03 16:17:31 +00:00
checkPhase = ''
2023-08-17 03:06:17 +00:00
LC_ALL=en_US.UTF-8 nosetests -v tests/config_test.py
'';
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 ];
maintainers = with lib.maintainers; [ eclairevoyant ];
platforms = lib.platforms.all;
mainProgram = pname;
};
}