fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
45 lines
918 B
Nix
45 lines
918 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchPypi,
|
|
cmake,
|
|
ninja,
|
|
pybind11,
|
|
scikit-build-core,
|
|
numpy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "awkward-cpp";
|
|
version = "34";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-OayBTXafOK3ppfbDm4Wwe7wFr1Y0L7FXQu3OEjf54Ek=";
|
|
};
|
|
|
|
build-system = [
|
|
cmake
|
|
ninja
|
|
pybind11
|
|
scikit-build-core
|
|
] ++ scikit-build-core.optional-dependencies.pyproject;
|
|
|
|
dependencies = [ numpy ];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
pythonImportsCheck = [ "awkward_cpp" ];
|
|
|
|
meta = {
|
|
description = "CPU kernels and compiled extensions for Awkward Array";
|
|
homepage = "https://github.com/scikit-hep/awkward";
|
|
changelog = "https://github.com/scikit-hep/awkward/releases/tag/v${version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ veprbl ];
|
|
};
|
|
}
|