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

46 lines
966 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, cmake
, numba
, numpy
, pytestCheckHook
, pyyaml
, rapidjson
, setuptools
}:
buildPythonPackage rec {
pname = "awkward";
version = "1.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-HYnHJE5hhLNfS85r0I/4LrLvYL5n9XKSO8aq7jXatUQ=";
};
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 ];
};
}