depot/third_party/nixpkgs/pkgs/development/python-modules/awkward-cpp/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

45 lines
918 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
cmake,
ninja,
pybind11,
scikit-build-core,
numpy,
}:
buildPythonPackage rec {
pname = "awkward-cpp";
version = "35";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-H4sRKll70kOHlOGnIaY6phhp+pWYoXrGvYEa1vZADQY=";
};
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 ];
};
}