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