1{ lib
2, buildPythonPackage
3, fetchPypi
4, cmake
5, numba
6, numpy
7, pytestCheckHook
8, pythonOlder
9, pyyaml
10, rapidjson
11, setuptools
12}:
13
14buildPythonPackage rec {
15 pname = "awkward";
16 version = "1.10.2";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-MDvAkZ8JMts+eKklTBf83rEl5L5lzYlLQN+8O/3fwFQ=";
24 };
25
26 nativeBuildInputs = [
27 cmake
28 ];
29
30 buildInputs = [
31 pyyaml
32 rapidjson
33 ];
34
35 propagatedBuildInputs = [
36 numpy
37 setuptools
38 ];
39
40 dontUseCmakeConfigure = true;
41
42 checkInputs = [
43 pytestCheckHook
44 numba
45 ];
46
47 disabledTests = [
48 # incomatible with numpy 1.23
49 "test_numpyarray"
50 ];
51
52 disabledTestPaths = [
53 "tests-cuda"
54 ];
55
56 pythonImportsCheck = [
57 "awkward"
58 ];
59
60 meta = with lib; {
61 description = "Manipulate JSON-like data with NumPy-like idioms";
62 homepage = "https://github.com/scikit-hep/awkward";
63 license = licenses.bsd3;
64 maintainers = with maintainers; [ veprbl ];
65 };
66}