1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, pandas
6, pyarrow
7, pytestrunner
8, pytest
9, h5py
10}:
11
12buildPythonPackage rec {
13 pname = "awkward";
14 version = "0.12.20";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "13494pnzz68qfnx17975h4c5l15idgg7wxl9r86q7jp5s1pphvb3";
19 };
20
21 nativeBuildInputs = [ pytestrunner ];
22 checkInputs = [ pandas pyarrow pytest h5py ];
23 propagatedBuildInputs = [ numpy ];
24
25 checkPhase = ''
26 py.test
27 '';
28
29 meta = with lib; {
30 description = "Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy";
31 homepage = https://github.com/scikit-hep/awkward-array;
32 license = licenses.bsd3;
33 maintainers = [ maintainers.costrouc ];
34 };
35}