Files
nixpkgs/pkgs/development/python-modules/awkward/default.nix
T
Dmitry Kalinkin c9c1132a54 python3Packages.awkward: 2.2.1 -> 2.2.2
python3Packages.awkward-cpp: 15 -> 16
2023-06-11 19:19:13 -04:00

62 lines
1.0 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, awkward-cpp
, hatch-fancy-pypi-readme
, hatchling
, numba
, numpy
, packaging
, typing-extensions
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "awkward";
version = "2.2.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Lui3ZJrEkPEGc5yz1M9R8wPDedNw6Iyf4sIZCoWR11M=";
};
nativeBuildInputs = [
hatch-fancy-pypi-readme
hatchling
];
propagatedBuildInputs = [
awkward-cpp
numpy
packaging
] ++ lib.optionals (pythonOlder "3.11") [
typing-extensions
];
dontUseCmakeConfigure = true;
nativeCheckInputs = [
pytestCheckHook
numba
];
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 ];
};
}