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

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

44 lines
909 B
Nix
Raw Normal View History

2022-06-14 08:55:52 +02:00
{ lib
, python3Packages
, fetchFromGitHub
, glibcLocales
}:
2018-06-03 10:59:58 +02:00
python3Packages.buildPythonApplication rec {
pname = "asciinema";
version = "2.2.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "asciinema";
repo = "asciinema";
rev = "v${version}";
2022-06-14 08:55:52 +02:00
hash = "sha256-ioSNd0Fjk2Fp05lk3HeokIjNYGU0jQEaIDfcFB18mV0=";
};
nativeBuildInputs = [
python3Packages.setuptools
];
postPatch = ''
substituteInPlace tests/pty_test.py \
--replace "python3" "${python3Packages.python}/bin/python"
'';
nativeCheckInputs = [
2022-06-14 08:55:52 +02:00
glibcLocales
python3Packages.nose
];
2018-07-03 18:17:31 +02:00
checkPhase = ''
2018-07-03 18:17:31 +02:00
LC_ALL=en_US.UTF-8 nosetests
'';
2022-06-14 08:55:52 +02:00
meta = with lib; {
description = "Terminal session recorder and the best companion of asciinema.org";
homepage = "https://asciinema.org/";
2022-06-14 08:55:52 +02:00
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ ];
};
}