From df74f34c6d96397fd8028901d5225bcb827938c4 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 30 Jul 2024 01:05:54 +0200 Subject: [PATCH] python312Packages.glyphtools: disable tests The setup.py test command has been removed. This package had no tests in the first place, so we reach partiy by import testing the module. --- .../development/python-modules/glyphtools/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/glyphtools/default.nix b/pkgs/development/python-modules/glyphtools/default.nix index c5c407ed9767..814c7a74d037 100644 --- a/pkgs/development/python-modules/glyphtools/default.nix +++ b/pkgs/development/python-modules/glyphtools/default.nix @@ -5,7 +5,6 @@ beziers, glyphslib, numpy, - setuptoolsCheckHook, }: buildPythonPackage rec { @@ -25,12 +24,10 @@ buildPythonPackage rec { ]; # A unit test suite does exist, but it only contains a dummy test that - # doesn't test anything. It does import the module though so we still run it. - doCheck = true; - nativeCheckInputs = [ - # Upstream apparently prefers the deprecated setuptools 'test' command. - setuptoolsCheckHook - ]; + # imports the library. + doCheck = false; + + pythonImportsCheck = [ "glyphtools" ]; meta = with lib; { description = "Python library for extracting information from font glyphs";