Files
nixpkgs/pkgs/development/python-modules/gflanguages/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

65 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
protobuf,
pytestCheckHook,
regex,
setuptools,
setuptools-scm,
uharfbuzz,
youseedee,
}:
buildPythonPackage rec {
pname = "gflanguages";
version = "0.7.7";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-JR+lmwGhPR/RoskpouNzGOE9kRgvSGgzx5Xa196k0eA=";
};
# Relax the dependency on protobuf 3. Other packages in the Google Fonts
# ecosystem have begun upgrading from protobuf 3 to protobuf 4,
# so we need to use protobuf 4 here as well to avoid a conflict
# in the closure of fontbakery. It seems to be compatible enough.
pythonRelaxDeps = [ "protobuf" ];
env.PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
build-system = [
setuptools
setuptools-scm
];
dependencies = [
protobuf
regex
];
nativeCheckInputs = [
pytestCheckHook
regex
uharfbuzz
youseedee
];
pythonImportsCheck = [ "gflanguages" ];
disabledTests = [
# AssertionError
"test_exemplars_are_in_script"
"test_sample_texts_are_in_script"
];
meta = {
description = "Python library for Google Fonts language metadata";
homepage = "https://github.com/googlefonts/lang";
changelog = "https://github.com/googlefonts/lang/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ danc86 ];
};
}