From ce51bb27a0be66ffb1cc1e5d34724a5d3cd0978e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 29 Sep 2024 17:05:42 +0200 Subject: [PATCH] python3Packages.ndindex: 1.8 -> 1.9.2 https://github.com/Quansight-Labs/ndindex/releases/tag/1.9.2 --- .../python-modules/ndindex/default.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/ndindex/default.nix b/pkgs/development/python-modules/ndindex/default.nix index dc03557da251..9c4ce4387e20 100644 --- a/pkgs/development/python-modules/ndindex/default.nix +++ b/pkgs/development/python-modules/ndindex/default.nix @@ -5,6 +5,7 @@ # build-system cython, + setuptools, # optional numpy, @@ -13,21 +14,25 @@ hypothesis, pytest-cov-stub, pytestCheckHook, + sympy, }: buildPythonPackage rec { pname = "ndindex"; - version = "1.8"; - format = "setuptools"; + version = "1.9.2"; + pyproject = true; src = fetchFromGitHub { owner = "Quansight-Labs"; repo = "ndindex"; rev = "refs/tags/${version}"; - hash = "sha256-F52ly3NkrZ0H9XoomMqmWfLl+8X0z26Yx67DB8DUqyU="; + hash = "sha256-5S4HN5MFLgURImwFsyyTOxDhrZJ5Oe+Ln/TA/bsCsek="; }; - nativeBuildInputs = [ cython ]; + build-system = [ + cython + setuptools + ]; postPatch = '' substituteInPlace pytest.ini \ @@ -38,10 +43,15 @@ buildPythonPackage rec { pythonImportsCheck = [ "ndindex" ]; + preCheck = '' + cd $out + ''; + nativeCheckInputs = [ hypothesis pytest-cov-stub pytestCheckHook + sympy ] ++ optional-dependencies.arrays; meta = with lib; {