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