Files
nixpkgs/pkgs/development/python-modules/glyphsets/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

75 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
defcon,
fetchPypi,
fonttools,
gflanguages,
glyphslib,
pytestCheckHook,
pyyaml,
requests,
setuptools-scm,
setuptools,
tabulate,
unicodedata2,
youseedee,
}:
buildPythonPackage rec {
pname = "glyphsets";
version = "1.1.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-jza6VQ3PZAQPku2hyo0KeO59r64Q9TpqLCI0dIX/URU=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "setuptools_scm>=8.1.0,<8.2" setuptools_scm
'';
env.PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
build-system = [
setuptools
setuptools-scm
];
dependencies = [
defcon
fonttools
gflanguages
glyphslib
pyyaml
requests
tabulate
unicodedata2
youseedee
];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
export PATH="$out/bin:$PATH"
'';
disabledTests = [
# This "test" just tries to connect to PyPI and look for newer releases. Not needed.
"test_dependencies"
# 616 instead of 617 glyphs in a glyphset
"test_definitions"
];
meta = {
description = "Google Fonts glyph set metadata";
homepage = "https://github.com/googlefonts/glyphsets";
changelog = "https://github.com/googlefonts/glyphsets/blob/v${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ danc86 ];
mainProgram = "glyphsets";
};
}