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

76 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatch-fancy-pypi-readme,
hatchling,
# dependencies
awkward-cpp,
fsspec,
numpy,
packaging,
# tests
numba,
numexpr,
pandas,
pyarrow,
pytest-xdist,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "awkward";
version = "2.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "scikit-hep";
repo = "awkward";
tag = "v${finalAttrs.version}";
hash = "sha256-ovbhCPTNxyfL7tkvBCiHF0kZt0l0oMSpdsE4E9S4JJY=";
};
build-system = [
hatch-fancy-pypi-readme
hatchling
];
dependencies = [
awkward-cpp
fsspec
numpy
packaging
];
dontUseCmakeConfigure = true;
pythonImportsCheck = [ "awkward" ];
nativeCheckInputs = [
fsspec
numba
numexpr
pandas
pyarrow
pytest-xdist
pytestCheckHook
];
disabledTestPaths = [
# Need to be run on a GPU platform.
"tests-cuda/*"
];
meta = {
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/${finalAttrs.src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ veprbl ];
};
})