From be64c2a49ed9507030a04b913a2cb752fbf69744 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 22 Jun 2024 16:41:29 +0200 Subject: [PATCH] python312Packages.glyphset: fix build, cleanup --- .../python-modules/glyphsets/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/glyphsets/default.nix b/pkgs/development/python-modules/glyphsets/default.nix index 2792bec5c3ed..e918de58ae85 100644 --- a/pkgs/development/python-modules/glyphsets/default.nix +++ b/pkgs/development/python-modules/glyphsets/default.nix @@ -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"