1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5
6 # build-system
7 setuptools,
8 setuptools-scm,
9
10 # dependencies
11 numba,
12 numpy,
13
14 # tests
15 pytestCheckHook,
16 bottleneck,
17 hypothesis,
18 pandas,
19 pytest-benchmark,
20 tabulate,
21}:
22
23buildPythonPackage rec {
24 version = "0.9.3";
25 pname = "numbagg";
26 pyproject = true;
27
28 src = fetchFromGitHub {
29 owner = "numbagg";
30 repo = "numbagg";
31 tag = "v${version}";
32 hash = "sha256-MEgSxxKZaL0sPhERFa8DWF+Vkc/VuHDyyB2yfFv/uYw=";
33 };
34
35 build-system = [
36 setuptools
37 setuptools-scm
38 ];
39
40 dependencies = [
41 numpy
42 numba
43 ];
44
45 pythonImportsCheck = [ "numbagg" ];
46
47 nativeCheckInputs = [
48 pytestCheckHook
49
50 pandas
51 bottleneck
52 hypothesis
53 tabulate
54 pytest-benchmark
55 ];
56
57 pytestFlags = [ "--benchmark-disable" ];
58
59 meta = {
60 description = "Fast N-dimensional aggregation functions with Numba";
61 homepage = "https://github.com/numbagg/numbagg";
62 changelog = "https://github.com/numbagg/numbagg/releases/tag/v${version}";
63 license = lib.licenses.bsd3;
64 maintainers = with lib.maintainers; [ flokli ];
65 };
66}