mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
asciinema: modernize
This commit is contained in:
parent
bf321bbb85
commit
84a5d6db40
@ -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,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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user