at 25.11-pre 1.1 kB view raw
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.0"; 25 pname = "numbagg"; 26 pyproject = true; 27 28 src = fetchFromGitHub { 29 owner = "numbagg"; 30 repo = "numbagg"; 31 tag = "v${version}"; 32 hash = "sha256-BuD5hjAd++pW4pEQyl0UP9gd3J8SjJirtpxVE53BLpM="; 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 meta = { 58 description = "Fast N-dimensional aggregation functions with Numba"; 59 homepage = "https://github.com/numbagg/numbagg"; 60 changelog = "https://github.com/numbagg/numbagg/releases/tag/${version}"; 61 license = lib.licenses.bsd3; 62 maintainers = with lib.maintainers; [ flokli ]; 63 }; 64}