mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
36 lines
720 B
Nix
36 lines
720 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, numpy
|
|
, pandas
|
|
, pyarrow
|
|
, pytestrunner
|
|
, pytest
|
|
, h5py
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "awkward";
|
|
version = "0.12.12";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "316abd04dd049d56567082670ae8800c265dc3f06b699cf2a953ea6aea7696ce";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|