diff options
Diffstat (limited to 'pkgs/development/python-modules/ndindex/default.nix')
-rw-r--r-- | pkgs/development/python-modules/ndindex/default.nix | 55 |
1 files changed, 30 insertions, 25 deletions
diff --git a/pkgs/development/python-modules/ndindex/default.nix b/pkgs/development/python-modules/ndindex/default.nix index 55704e1eef08..9c4ce4387e20 100644 --- a/pkgs/development/python-modules/ndindex/default.nix +++ b/pkgs/development/python-modules/ndindex/default.nix @@ -1,59 +1,64 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, cython + # build-system + cython, + setuptools, -# optional -, numpy + # optional + numpy, -# tests -, hypothesis -, pytest-cov -, pytestCheckHook + # tests + 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 = [ + build-system = [ cython + setuptools ]; postPatch = '' substituteInPlace pytest.ini \ - --replace "--cov=ndindex/ --cov-report=term-missing --flakes" "" + --replace "--flakes" "" ''; - passthru.optional-dependencies.arrays = [ - numpy - ]; + optional-dependencies.arrays = [ numpy ]; - pythonImportsCheck = [ - "ndindex" - ]; + pythonImportsCheck = [ "ndindex" ]; + + preCheck = '' + cd $out + ''; nativeCheckInputs = [ hypothesis - pytest-cov # uses cov markers + pytest-cov-stub pytestCheckHook - ] ++ passthru.optional-dependencies.arrays; + sympy + ] ++ optional-dependencies.arrays; meta = with lib; { description = ""; homepage = "https://github.com/Quansight-Labs/ndindex"; changelog = "https://github.com/Quansight-Labs/ndindex/releases/tag/${version}"; license = licenses.mit; - maintainers = with maintainers; [ ]; + maintainers = [ ]; }; } |