depot/third_party/nixpkgs/pkgs/development/python-modules/awkward/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

45 lines
965 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, cmake
, numba
, numpy
, pytestCheckHook
, pyyaml
, rapidjson
, setuptools
}:
buildPythonPackage rec {
pname = "awkward";
version = "1.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-yteZI35DcLUPd+cW543TVlp7P9gvzVpBp2qhUS1RB10=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ pyyaml rapidjson ];
propagatedBuildInputs = [ numpy setuptools ]; # https://github.com/scikit-hep/awkward/blob/main/requirements.txt
dontUseCmakeConfigure = true;
checkInputs = [ pytestCheckHook numba ];
disabledTests = [
# incomatible with numpy 1.23
"test_numpyarray"
];
disabledTestPaths = [ "tests-cuda" ];
pythonImportsCheck = [ "awkward" ];
meta = with lib; {
description = "Manipulate JSON-like data with NumPy-like idioms";
homepage = "https://github.com/scikit-hep/awkward";
license = licenses.bsd3;
maintainers = with maintainers; [ veprbl ];
};
}