Merge pull request from dotlambda/asciinema

asciinema: don't use nose
This commit is contained in:
Martin Weinelt 2024-07-09 17:40:59 +02:00 committed by GitHub
commit 16ec5b6954
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,13 +1,13 @@
{ lib
, python3Packages
, fetchFromGitHub
, glibcLocales
{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "asciinema";
version = "2.4.0";
format = "pyproject";
pyproject = true;
src = fetchFromGitHub {
owner = "asciinema";
@ -16,23 +16,14 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-UegLwpJ+uc9cW3ozLQJsQBjIGD7+vzzwzQFRV5gmDmI=";
};
nativeBuildInputs = [
python3Packages.setuptools
];
build-system = [ python3Packages.setuptools ];
postPatch = ''
substituteInPlace tests/pty_test.py \
--replace "python3" "${python3Packages.python}/bin/python"
--replace-fail "python3" "${python3Packages.python.interpreter}"
'';
nativeCheckInputs = [
glibcLocales
python3Packages.nose
];
checkPhase = ''
LC_ALL=en_US.UTF-8 nosetests -v tests/config_test.py
'';
nativeCheckInputs = [ python3Packages.pytestCheckHook ];
meta = {
description = "Terminal session recorder and the best companion of asciinema.org";