From 2e3b53b3a8ca1b8b8dcb3fe2d2ecbc9fac838e53 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Mon, 20 Jul 2026 01:32:40 +0200 Subject: [PATCH] python3Packages.datadiff: enable tests --- .../development/python-modules/datadiff/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/datadiff/default.nix b/pkgs/development/python-modules/datadiff/default.nix index e9f552b738ed..5440f6ee8e34 100644 --- a/pkgs/development/python-modules/datadiff/default.nix +++ b/pkgs/development/python-modules/datadiff/default.nix @@ -3,6 +3,8 @@ buildPythonPackage, fetchPypi, setuptools, + pytestCheckHook, + six, }: buildPythonPackage (finalAttrs: { @@ -17,11 +19,18 @@ buildPythonPackage (finalAttrs: { build-system = [ setuptools ]; - # Tests are not part of the PyPI releases - doCheck = false; + nativeCheckInputs = [ + pytestCheckHook + six + ]; pythonImportsCheck = [ "datadiff" ]; + disabledTests = [ + # slice is an hashable type in recent python versions + "test_unhashable_type" + ]; + meta = { description = "Library to provide human-readable diffs of Python data structures"; homepage = "https://sourceforge.net/projects/datadiff/";