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 = {