nixpkgs/pkgs/development/python-modules/awkward/default.nix
2023-08-10 23:03:58 -04:00

65 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, awkward-cpp
, hatch-fancy-pypi-readme
, hatchling
, numba
, numpy
, packaging
, setuptools
, typing-extensions
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "awkward";
version = "2.3.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-NLROXEbh4MKvBFuj+4+Wa2u37P9vuQ0Ww8kK+CYWt5E=";
};
nativeBuildInputs = [
hatch-fancy-pypi-readme
hatchling
];
propagatedBuildInputs = [
awkward-cpp
numpy
packaging
] ++ lib.optionals (pythonOlder "3.11") [
typing-extensions
];
dontUseCmakeConfigure = true;
nativeCheckInputs = [
pytestCheckHook
numba
setuptools
];
disabledTestPaths = [
"tests-cuda"
];
pythonImportsCheck = [
"awkward"
];
meta = with lib; {
description = "Manipulate JSON-like data with NumPy-like idioms";
homepage = "https://github.com/scikit-hep/awkward";
changelog = "https://github.com/scikit-hep/awkward/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ veprbl ];
};
}