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-04-21 15:54:59 +00:00
|
|
|
version = "32";
|
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-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-rYxa+GIG+w9DSxZ0nMXMppoVqI4WykPpHlbFzKd0IfA=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
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;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|