mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 21:16:37 +01:00
Diff: https://github.com/jquast/wcwidth/compare/0.2.14...0.4.0 Changelog: https://github.com/jquast/wcwidth/releases/tag/0.4.0
44 lines
1 KiB
Nix
44 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wcwidth";
|
|
version = "0.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jquast";
|
|
repo = "wcwidth";
|
|
tag = version;
|
|
hash = "sha256-TQFvXmYkcsDojZSPAR76Dyq2vRUO41sII0nhC78Fd7Y=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "wcwidth" ];
|
|
|
|
meta = {
|
|
description = "Measures number of Terminal column cells of wide-character codes";
|
|
longDescription = ''
|
|
This API is mainly for Terminal Emulator implementors -- any Python
|
|
program that attempts to determine the printable width of a string on
|
|
a Terminal. It is implemented in python (no C library calls) and has
|
|
no 3rd-party dependencies.
|
|
'';
|
|
homepage = "https://github.com/jquast/wcwidth";
|
|
changelog = "https://github.com/jquast/wcwidth/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|