From 6a3a3ef99543ed59fc169c738c7170dc45c17d30 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 10 Mar 2023 22:28:45 +0100 Subject: [PATCH] python310Packages.traittypes: Disable failing tests with numpy>1.16 --- pkgs/development/python-modules/traittypes/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/traittypes/default.nix b/pkgs/development/python-modules/traittypes/default.nix index a26ab6b46f81..f129aad9158b 100644 --- a/pkgs/development/python-modules/traittypes/default.nix +++ b/pkgs/development/python-modules/traittypes/default.nix @@ -35,6 +35,12 @@ buildPythonPackage rec { propagatedBuildInputs = [ traitlets ]; nativeCheckInputs = [ numpy pandas xarray nose pytestCheckHook ]; + + disabledTestPaths = lib.optional (lib.versionAtLeast numpy.version "1.17") [ + # https://github.com/jupyter-widgets/traittypes/blob/master/setup.py#L86-L87 + "traittypes/tests/test_traittypes.py" + ]; + pythonImportsCheck = [ "traittypes" ]; meta = with lib; {