From 714e4bff5ee4e2da600236eeadc222f5239689de Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Fri, 24 Oct 2025 10:58:24 -0400 Subject: [PATCH] python313Packages.traittypes: 0.2.1-unstable-2020-07-17 -> 0.2.3 --- .../python-modules/traittypes/default.nix | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/traittypes/default.nix b/pkgs/development/python-modules/traittypes/default.nix index bcd7ed2dfe20..3fa2ad886cd4 100644 --- a/pkgs/development/python-modules/traittypes/default.nix +++ b/pkgs/development/python-modules/traittypes/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - isPy27, pytestCheckHook, setuptools, numpy, @@ -11,25 +10,18 @@ traitlets, }: -buildPythonPackage { +buildPythonPackage rec { pname = "traittypes"; - version = "0.2.1-unstable-2020-07-17"; + version = "0.2.3"; pyproject = true; - disabled = isPy27; - src = fetchFromGitHub { owner = "jupyter-widgets"; repo = "traittypes"; - rev = "af2ebeec9e58b73a12d4cf841bd506d6eadb8868"; - hash = "sha256-q7kt8b+yDHsWML/wCeND9PrZMVjemhzG7Ih1OtHbnTw="; + rev = version; + hash = "sha256-RwEZs4QFK+IrPFPBI7+jnQSFQryQFzEbrnOF8OyExuk="; }; - postPatch = '' - substituteInPlace traittypes/tests/test_traittypes.py \ - --replace-fail "np.int" "int" - ''; - build-system = [ setuptools ]; dependencies = [ traitlets ]; @@ -41,6 +33,11 @@ buildPythonPackage { pytestCheckHook ]; + disabledTests = [ + # AssertionError; see https://github.com/jupyter-widgets/traittypes/issues/55 + "test_initial_values" + ]; + pythonImportsCheck = [ "traittypes" ]; meta = {