2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-12-25 13:55:36 +00:00
|
|
|
, cmake
|
|
|
|
, numba
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
2020-12-25 13:55:36 +00:00
|
|
|
, pytestCheckHook
|
2021-07-14 22:03:04 +00:00
|
|
|
, pyyaml
|
2020-12-25 13:55:36 +00:00
|
|
|
, rapidjson
|
2022-08-12 12:06:08 +00:00
|
|
|
, setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "awkward";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-yteZI35DcLUPd+cW543TVlp7P9gvzVpBp2qhUS1RB10=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2021-07-14 22:03:04 +00:00
|
|
|
buildInputs = [ pyyaml rapidjson ];
|
2022-08-12 12:06:08 +00:00
|
|
|
propagatedBuildInputs = [ numpy setuptools ]; # https://github.com/scikit-hep/awkward/blob/main/requirements.txt
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook numba ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# incomatible with numpy 1.23
|
|
|
|
"test_numpyarray"
|
|
|
|
];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
disabledTestPaths = [ "tests-cuda" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
pythonImportsCheck = [ "awkward" ];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|