67 lines
1.1 KiB
Nix
67 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
|
|
# build-system
|
|
setuptools,
|
|
setuptools-scm,
|
|
|
|
# dependencies
|
|
numba,
|
|
numpy,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
bottleneck,
|
|
hypothesis,
|
|
pandas,
|
|
pytest-benchmark,
|
|
tabulate,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.9.0";
|
|
pname = "numbagg";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "numbagg";
|
|
repo = "numbagg";
|
|
tag = "v${version}";
|
|
hash = "sha256-BuD5hjAd++pW4pEQyl0UP9gd3J8SjJirtpxVE53BLpM=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
numpy
|
|
numba
|
|
];
|
|
|
|
pythonImportsCheck = [ "numbagg" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
|
|
pandas
|
|
bottleneck
|
|
hypothesis
|
|
tabulate
|
|
pytest-benchmark
|
|
];
|
|
|
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
|
|
|
meta = {
|
|
description = "Fast N-dimensional aggregation functions with Numba";
|
|
homepage = "https://github.com/numbagg/numbagg";
|
|
changelog = "https://github.com/numbagg/numbagg/releases/tag/${version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ flokli ];
|
|
};
|
|
}
|