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

34 lines
672 B
Nix
Raw Normal View History

{ lib
2018-10-25 16:25:48 +01:00
, buildPythonPackage
, fetchPypi
, numpy
, pytestrunner
, pytest
, h5py
2018-10-25 16:25:48 +01:00
}:
buildPythonPackage rec {
pname = "awkward";
version = "0.8.7";
2018-10-25 16:25:48 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "0a53c484za2l4yy1i05qhkylvygg8fnh4j1v3n35x2dsi929awdp";
2018-10-25 16:25:48 +01:00
};
nativeBuildInputs = [ pytestrunner ];
checkInputs = [ pytest h5py ];
2018-10-25 16:25:48 +01:00
propagatedBuildInputs = [ numpy ];
checkPhase = ''
py.test
'';
meta = with lib; {
description = "Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy";
2018-10-25 16:25:48 +01:00
homepage = https://github.com/scikit-hep/awkward-array;
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}