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