python312Packages.glyphset: fix build, cleanup

This commit is contained in:
Martin Weinelt
2024-06-24 12:18:30 +02:00
parent a7bd73f7db
commit be64c2a49e
@@ -24,6 +24,16 @@ buildPythonPackage rec {
hash = "sha256-fa+W1IGIZcn1P1xNKm1Yb/TOuf4QdDVnIvlDkOLOcLY=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "setuptools_scm>=8.0.4,<8.1" "setuptools_scm"
'';
build-system = [
setuptools
setuptools-scm
];
dependencies = [
defcon
fonttools
@@ -31,16 +41,15 @@ buildPythonPackage rec {
glyphslib
pyyaml
requests
setuptools
unicodedata2
];
build-system = [ setuptools-scm ];
doCheck = true;
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"