Files
ghostty/nix/pkgs/ucs-detect.nix
Mitchell Hashimoto a315f8f32e nix: add ucs-detect
This makes `ucs-detect` available in our Nix environment so that we can
run tests on our Unicode support. In the future, I'd like to modify our
CI to run this too.

This also adds a `./test/ucs-detect.sh` script that runs `ucs-detect`
with consistent options that match the upstream test styles.
2025-11-06 09:22:18 -08:00

42 lines
724 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
# Dependencies
blessed,
wcwidth,
pyyaml,
}:
buildPythonPackage rec {
pname = "ucs-detect";
version = "1.0.8";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit version;
pname = "ucs_detect";
hash = "sha256-ihB+tZCd6ykdeXYxc6V1Q6xALQ+xdCW5yqSL7oppqJc=";
};
dependencies = [
blessed
wcwidth
pyyaml
];
nativeBuildInputs = [setuptools];
doCheck = false;
meta = with lib; {
description = "Measures number of Terminal column cells of wide-character codes";
homepage = "https://github.com/jquast/ucs-detect";
license = licenses.mit;
maintainers = [];
};
}