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
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "awkward";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "1.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "3cb1b0e28f420232d894d89665d5c0c8241b99e56d806171f4faf5cdfec08ae1";
|
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 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook numba ];
|
|
|
|
dontUseSetuptoolsCheck = true;
|
2021-03-09 03:18:52 +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";
|
|
|
|
homepage = "https://github.com/scikit-hep/awkward-1.0";
|
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
|
|
|
};
|
|
|
|
}
|