mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-17 21:12:39 +00:00
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.
42 lines
724 B
Nix
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 = [];
|
|
};
|
|
}
|