8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
35 lines
710 B
Nix
35 lines
710 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, numpy
|
|
, pandas
|
|
, pyarrow
|
|
, pytestrunner
|
|
, pytest
|
|
, h5py
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "awkward";
|
|
version = "0.12.20";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "13494pnzz68qfnx17975h4c5l15idgg7wxl9r86q7jp5s1pphvb3";
|
|
};
|
|
|
|
nativeBuildInputs = [ pytestrunner ];
|
|
checkInputs = [ pandas pyarrow pytest h5py ];
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy";
|
|
homepage = "https://github.com/scikit-hep/awkward-array";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|