mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-14 03:50:21 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
38 lines
803 B
Nix
38 lines
803 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, wcwidth
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyte";
|
|
version = "0.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "selectel";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-gLvsW4ou6bGq9CxT6XdX+r2ViMk7z+aejemrdLwJb3M=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Remove pytest-runner dependency since it is not supported in the NixOS
|
|
# sandbox
|
|
sed -i '/pytest-runner/d' setup.py
|
|
'';
|
|
|
|
propagatedBuildInputs = [ wcwidth ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "pyte" ];
|
|
|
|
meta = with lib; {
|
|
description = "Simple VTXXX-compatible linux terminal emulator";
|
|
homepage = "https://github.com/selectel/pyte";
|
|
license = licenses.lgpl3;
|
|
maintainers = with maintainers; [ flokli ];
|
|
};
|
|
}
|