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