2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
2023-11-16 04:20:00 +00:00
|
|
|
, fetchPypi
|
2022-12-17 10:02:37 +00:00
|
|
|
, cmake
|
2023-10-09 19:29:22 +00:00
|
|
|
, ninja
|
2022-12-17 10:02:37 +00:00
|
|
|
, pybind11
|
|
|
|
, scikit-build-core
|
2023-11-16 04:20:00 +00:00
|
|
|
, numpy
|
2022-12-17 10:02:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "awkward-cpp";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "33";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-VQrevM0ynRjQLpUibQuJaYGI/TPkTwdFCULGkogZJ9g=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
2022-12-17 10:02:37 +00:00
|
|
|
cmake
|
2023-10-09 19:29:22 +00:00
|
|
|
ninja
|
2022-12-17 10:02:37 +00:00
|
|
|
pybind11
|
|
|
|
scikit-build-core
|
|
|
|
] ++ scikit-build-core.optional-dependencies.pyproject;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2022-12-17 10:02:37 +00:00
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"awkward_cpp"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CPU kernels and compiled extensions for Awkward Array";
|
|
|
|
homepage = "https://github.com/scikit-hep/awkward";
|
2024-02-07 01:22:34 +00:00
|
|
|
changelog = "https://github.com/scikit-hep/awkward/releases/tag/v${version}";
|
2022-12-17 10:02:37 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|