2018-12-02 13:15:02 +00:00
|
|
|
{ lib
|
2018-10-25 16:25:48 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, numpy
|
2019-04-04 16:47:55 +01:00
|
|
|
, pandas
|
|
|
|
, pyarrow
|
2018-12-02 13:15:02 +00:00
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
|
|
|
, h5py
|
2018-10-25 16:25:48 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "awkward";
|
2019-10-24 07:47:24 +01:00
|
|
|
version = "0.12.14";
|
2018-10-25 16:25:48 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:24 +01:00
|
|
|
sha256 = "a76b0b76e4e843bfffc26771f6e1848be6f1c225e79f541c12215ae90503e489";
|
2018-10-25 16:25:48 +01:00
|
|
|
};
|
|
|
|
|
2019-03-05 11:57:28 +00:00
|
|
|
nativeBuildInputs = [ pytestrunner ];
|
2019-04-04 16:47:55 +01:00
|
|
|
checkInputs = [ pandas pyarrow pytest h5py ];
|
2018-10-25 16:25:48 +01:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
2019-03-05 11:57:28 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-12-02 13:15:02 +00:00
|
|
|
meta = with lib; {
|
2019-03-05 11:57:28 +00:00
|
|
|
description = "Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy";
|
2018-10-25 16:25:48 +01:00
|
|
|
homepage = https://github.com/scikit-hep/awkward-array;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|