2019-11-11 10:58:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cmake
|
|
|
|
, numba
|
|
|
|
, numpy
|
2020-04-11 16:01:27 +01:00
|
|
|
, pytestCheckHook
|
2019-11-11 10:58:19 +00:00
|
|
|
, rapidjson
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-12-17 17:35:40 +00:00
|
|
|
pname = "awkward";
|
2021-04-17 17:37:43 +01:00
|
|
|
version = "1.2.2";
|
2019-11-11 10:58:19 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-17 17:37:43 +01:00
|
|
|
sha256 = "89f126a072d3a6eee091e1afeed87e0b2ed3c34ed31a1814062174de3cab8d9b";
|
2019-11-11 10:58:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ rapidjson ];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2020-04-11 16:01:27 +01:00
|
|
|
checkInputs = [ pytestCheckHook numba ];
|
|
|
|
dontUseSetuptoolsCheck = true;
|
2021-02-21 23:03:46 +00:00
|
|
|
disabledTestPaths = [ "tests-cuda" ];
|
2019-11-11 10:58:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-11 15:50:00 +01:00
|
|
|
description = "Manipulate JSON-like data with NumPy-like idioms";
|
2019-11-11 10:58:19 +00:00
|
|
|
homepage = "https://github.com/scikit-hep/awkward-1.0";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|