1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, cmake
6, ninja
7, pybind11
8, scikit-build-core
9, numpy
10}:
11
12buildPythonPackage rec {
13 pname = "awkward-cpp";
14 version = "26";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-o3wI+JEmtjfUczRUob8/KLGNn3lH0h3GuhIDfYg7HGY=";
22 };
23
24 nativeBuildInputs = [
25 cmake
26 ninja
27 pybind11
28 scikit-build-core
29 ] ++ scikit-build-core.optional-dependencies.pyproject;
30
31 propagatedBuildInputs = [
32 numpy
33 ];
34
35 dontUseCmakeConfigure = true;
36
37 pythonImportsCheck = [
38 "awkward_cpp"
39 ];
40
41 meta = with lib; {
42 description = "CPU kernels and compiled extensions for Awkward Array";
43 homepage = "https://github.com/scikit-hep/awkward";
44 license = licenses.bsd3;
45 maintainers = with maintainers; [ veprbl ];
46 };
47}