5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
48 lines
921 B
Nix
48 lines
921 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, cmake
|
|
, ninja
|
|
, pybind11
|
|
, scikit-build-core
|
|
, numpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "awkward-cpp";
|
|
version = "33";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-VQrevM0ynRjQLpUibQuJaYGI/TPkTwdFCULGkogZJ9g=";
|
|
};
|
|
|
|
build-system = [
|
|
cmake
|
|
ninja
|
|
pybind11
|
|
scikit-build-core
|
|
] ++ scikit-build-core.optional-dependencies.pyproject;
|
|
|
|
dependencies = [
|
|
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";
|
|
changelog = "https://github.com/scikit-hep/awkward/releases/tag/v${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ veprbl ];
|
|
};
|
|
}
|