2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-12-17 10:02:37 +00:00
|
|
|
, pythonOlder
|
|
|
|
, awkward-cpp
|
|
|
|
, hatch-fancy-pypi-readme
|
|
|
|
, hatchling
|
2020-12-25 13:55:36 +00:00
|
|
|
, numba
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
2022-12-17 10:02:37 +00:00
|
|
|
, packaging
|
|
|
|
, typing-extensions
|
2020-12-25 13:55:36 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "awkward";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "2.0.5";
|
2022-12-17 10:02:37 +00:00
|
|
|
format = "pyproject";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-Kge7BAlBF4L+oibeXIF+tuSNsG1kMjl3WB5PME+RECk=";
|
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
|
2022-09-30 11:47:45 +00:00
|
|
|
numpy
|
2022-12-17 10:02:37 +00:00
|
|
|
packaging
|
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
|
|
typing-extensions
|
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-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
pytestCheckHook
|
|
|
|
numba
|
|
|
|
];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"tests-cuda"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"awkward"
|
|
|
|
];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
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";
|
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
|
|
|
};
|
|
|
|
}
|