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-08-22 20:05:09 +00:00
|
|
|
version = "2.3.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-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-1B2A2lfLeDHgD4tg3M5IIyHxBQ0cHuWDrQ3bUKAIFlc=";
|
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;
|
|
|
|
mainProgram = pname;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|