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

35 lines
703 B
Nix
Raw Normal View History

{ lib
2018-10-25 17:25:48 +02:00
, buildPythonPackage
, fetchPypi
, numpy
, pandas
, pytestrunner
, pytest
, h5py
2018-10-25 17:25:48 +02:00
}:
buildPythonPackage rec {
pname = "awkward";
version = "0.14.0";
2018-10-25 17:25:48 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "6a3878f46e8bc2acf28a0b9feb69d354ad2fee2a2a0f65c48c115aa74f245204";
2018-10-25 17:25:48 +02:00
};
nativeBuildInputs = [ pytestrunner ];
checkInputs = [ pandas pytest h5py ];
2018-10-25 17:25:48 +02: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 17:25:48 +02:00
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}