2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2024-02-29 20:09:43 +00:00
|
|
|
, fsspec
|
2024-01-02 11:29:13 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2022-12-17 10:02:37 +00:00
|
|
|
, pythonOlder
|
2023-11-16 04:20:00 +00:00
|
|
|
, fetchFromGitHub
|
2022-12-17 10:02:37 +00:00
|
|
|
, hatch-fancy-pypi-readme
|
|
|
|
, hatchling
|
2023-11-16 04:20:00 +00:00
|
|
|
, awkward-cpp
|
|
|
|
, importlib-metadata
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
2022-12-17 10:02:37 +00:00
|
|
|
, packaging
|
|
|
|
, typing-extensions
|
2023-11-16 04:20:00 +00:00
|
|
|
, jax
|
|
|
|
, jaxlib
|
|
|
|
, numba
|
|
|
|
, setuptools
|
|
|
|
, numexpr
|
|
|
|
, pandas
|
|
|
|
, pyarrow
|
|
|
|
, pytest-xdist
|
2020-12-25 13:55:36 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "awkward";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "2.6.1";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scikit-hep";
|
|
|
|
repo = "awkward";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-G9jXAo37mhvXzn7cQ/DEUGauGs+P7JxBntfu7ZPfaHc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
2022-12-17 10:02:37 +00:00
|
|
|
hatch-fancy-pypi-readme
|
|
|
|
hatchling
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-12-17 10:02:37 +00:00
|
|
|
awkward-cpp
|
2024-02-29 20:09:43 +00:00
|
|
|
fsspec
|
2023-11-16 04:20:00 +00:00
|
|
|
importlib-metadata
|
2022-09-30 11:47:45 +00:00
|
|
|
numpy
|
2022-12-17 10:02:37 +00:00
|
|
|
packaging
|
2023-11-16 04:20:00 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
2022-12-17 10:02:37 +00:00
|
|
|
typing-extensions
|
2023-11-16 04:20:00 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.12") [
|
|
|
|
importlib-metadata
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
pythonImportsCheck = [ "awkward" ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
fsspec
|
2022-09-30 11:47:45 +00:00
|
|
|
numba
|
2023-08-22 20:05:09 +00:00
|
|
|
setuptools
|
2023-11-16 04:20:00 +00:00
|
|
|
numexpr
|
|
|
|
pandas
|
|
|
|
pyarrow
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
2024-01-02 11:29:13 +00:00
|
|
|
] ++ lib.optionals (!stdenv.isDarwin) [
|
|
|
|
# no support for darwin
|
|
|
|
jax
|
|
|
|
jaxlib
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
# The following tests have been disabled because they need to be run on a GPU platform.
|
2022-09-30 11:47:45 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"tests-cuda"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-12-25 13:55:36 +00:00
|
|
|
description = "Manipulate JSON-like data with NumPy-like idioms";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://github.com/scikit-hep/awkward";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/scikit-hep/awkward/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2020-12-25 13:55:36 +00:00
|
|
|
maintainers = with maintainers; [ veprbl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|