nixpkgs/pkgs/development/python-modules/awkward/default.nix

35 lines
703 B
Nix
Raw Normal View History

{ lib
2018-10-25 15:25:48 +00:00
, buildPythonPackage
, fetchPypi
, numpy
, pandas
, pytestrunner
, pytest
, h5py
2018-10-25 15:25:48 +00:00
}:
buildPythonPackage rec {
pname = "awkward";
2020-08-16 17:30:50 +00:00
version = "0.13.0";
2018-10-25 15:25:48 +00:00
src = fetchPypi {
inherit pname version;
2020-08-16 17:30:50 +00:00
sha256 = "1a461ee084ea5e98333dacf2506e9b2619ee89cece14b9b99830b546b35c5922";
2018-10-25 15:25:48 +00:00
};
nativeBuildInputs = [ pytestrunner ];
checkInputs = [ pandas pytest h5py ];
2018-10-25 15:25:48 +00:00
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";
2018-10-25 15:25:48 +00:00
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}