2020-12-25 13:55:36 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-runner
|
2020-12-25 13:55:36 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "awkward0";
|
2021-03-20 04:20:00 +00:00
|
|
|
version = "0.15.5";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scikit-hep";
|
|
|
|
repo = "awkward-0.x";
|
|
|
|
rev = version;
|
2021-03-20 04:20:00 +00:00
|
|
|
sha256 = "039pxzgll2yz8xpr6bw788ymvgvqgna5kgl9m6d9mzi4yhbjsjpx";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
nativeBuildInputs = [ pytest-runner ];
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
# Can't find a fixture
|
|
|
|
disabledTests = [ "test_import_pandas" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "awkward0" ];
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|