2020-12-07 13:03:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pytestrunner
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "awkward0";
|
2021-01-10 10:00:47 +00:00
|
|
|
version = "0.15.2";
|
2020-12-07 13:03:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scikit-hep";
|
|
|
|
repo = "awkward-0.x";
|
|
|
|
rev = version;
|
2021-01-10 10:00:47 +00:00
|
|
|
sha256 = "sha256-C6/byIGcabGjws5QI9sh5BO2M4Lhqkooh4mSjUEKCKU=";
|
2020-12-07 13:03:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pytestrunner ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
checkInputs = [ pandas pytestCheckHook ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
# Almost all tests in this file fail
|
|
|
|
rm tests/test_persist.py
|
|
|
|
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 = with maintainers; [ costrouc SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|