depot/third_party/nixpkgs/pkgs/development/python-modules/pyte/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

37 lines
801 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, wcwidth
}:
buildPythonPackage rec {
pname = "pyte";
version = "0.8.1";
src = fetchFromGitHub {
owner = "selectel";
repo = pname;
rev = version;
hash = "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 ];
};
}