depot/third_party/nixpkgs/pkgs/development/python-modules/vector/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

58 lines
1.1 KiB
Nix

{
lib,
awkward,
buildPythonPackage,
fetchPypi,
hatch-vcs,
hatchling,
numba,
numpy,
notebook,
packaging,
papermill,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "vector";
version = "1.4.1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-Fa74kRVg2x6j/6nb1UFNDsV1pQSiw/I+pFFwoYmURm4=";
};
nativeBuildInputs = [
hatch-vcs
hatchling
];
propagatedBuildInputs = [
numpy
packaging
];
checkInputs = [
awkward
notebook
numba
papermill
pytestCheckHook
];
pythonImportsCheck = [ "vector" ];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Library for 2D, 3D, and Lorentz vectors, especially arrays of vectors, to solve common physics problems in a NumPy-like way";
homepage = "https://github.com/scikit-hep/vector";
changelog = "https://github.com/scikit-hep/vector/releases/tag/v${version}";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ veprbl ];
};
}