depot/third_party/nixpkgs/pkgs/development/python-modules/sparse/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

64 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, dask
, fetchPypi
, numba
, numpy
, pytest7CheckHook
, pythonOlder
, setuptools
, setuptools-scm
, scipy
}:
buildPythonPackage rec {
pname = "sparse";
version = "0.15.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-lzrcuIqNuOPYBHlTMx4m0/ZKVlf5tGprhZxHZjw+75k=";
};
postPatch = ''
substituteInPlace pytest.ini \
--replace-fail "--cov-report term-missing --cov-report html --cov-report=xml --cov-report=term --cov sparse --cov-config .coveragerc --junitxml=junit/test-results.xml" ""
'';
build-system = [
setuptools
setuptools-scm
];
dependencies = [
numba
numpy
scipy
];
nativeCheckInputs = [
dask
pytest7CheckHook
];
pythonImportsCheck = [
"sparse"
];
pytestFlagsArray = [
"-W"
"ignore::pytest.PytestRemovedIn8Warning"
];
meta = with lib; {
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 = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}