Skip to content

Commit

Permalink
asciinema: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Jul 9, 2024
1 parent bf321bb commit 84a5d6d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions pkgs/tools/misc/asciinema/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -16,13 +16,11 @@ 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 = [ python3Packages.pytestCheckHook ];
Expand Down

0 comments on commit 84a5d6d

Please sign in to comment.