mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-15 17:07:25 +03:00
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:
parent
d4187810f9
commit
3c6b652d68
64
pkgs/development/python-modules/ndindex/default.nix
Normal file
64
pkgs/development/python-modules/ndindex/default.nix
Normal 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; [ ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user