2025-05-26 11:34:39 +00:00

61 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
setuptools-scm,
# dependencies
numba,
numpy,
scipy,
# tests
dask,
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "sparse";
version = "0.17.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pydata";
repo = "sparse";
tag = version;
hash = "sha256-LYJ7YnR7WtzamK6py1NRPBe+h28L7JT+52wmourAc/c=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
numba
numpy
scipy
];
nativeCheckInputs = [
dask
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "sparse" ];
meta = {
description = "Sparse n-dimensional arrays computations";
homepage = "https://sparse.pydata.org/";
changelog = "https://sparse.pydata.org/en/stable/changelog.html";
downloadPage = "https://github.com/pydata/sparse/releases/tag/${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}