python310Packages.ndindex: init at 1.6

Packages as a dependency for blosc2, which will be packaged as a
depdency for tables.
This commit is contained in:
Martin Weinelt 2023-03-08 00:01:33 +00:00
parent d4187810f9
commit 3c6b652d68
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,64 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, cython
# optional
, numpy
# tests
, hypothesis
, pytest-cov
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "ndindex";
version = "1.6";
format = "setuptools";
src = fetchFromGitHub {
owner = "Quansight-Labs";
repo = "ndindex";
rev = "refs/tags/${version}";
hash = "sha256-QLWGgbF5nNTa1SsSkupo+fAs9K7eTexTK9n9yDLVgrQ=";
};
nativeBuildInputs = [
cython
];
postPatch = ''
substituteInPlace pytest.ini \
--replace "--cov=ndindex/ --cov-report=term-missing --flakes" ""
'';
passthru.optional-dependencies.arrays = [
numpy
];
pythonImportsCheck = [
"ndindex"
];
nativeCheckInputs = [
hypothesis
pytest-cov # uses cov markers
pytestCheckHook
] ++ passthru.optional-dependencies.arrays;
pytestFlagsArray = [
# pytest.PytestRemovedIn8Warning: Passing None has been deprecated.
"--deselect=ndindex/tests/test_ndindex.py::test_ndindex_invalid"
];
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; [ ];
};
}

View File

@ -6347,6 +6347,8 @@ self: super: with self; {
ndg-httpsclient = callPackage ../development/python-modules/ndg-httpsclient { };
ndindex = callPackage ../development/python-modules/ndindex { };
ndjson = callPackage ../development/python-modules/ndjson { };
ndms2-client = callPackage ../development/python-modules/ndms2-client { };