2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
2023-02-02 18:25:31 +00:00
|
|
|
, awkward
|
2022-09-30 11:47:45 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, hatch-vcs
|
|
|
|
, hatchling
|
2023-02-02 18:25:31 +00:00
|
|
|
, numba
|
2022-09-30 11:47:45 +00:00
|
|
|
, numpy
|
2023-02-02 18:25:31 +00:00
|
|
|
, notebook
|
|
|
|
, packaging
|
|
|
|
, papermill
|
2022-09-30 11:47:45 +00:00
|
|
|
, pytestCheckHook
|
2023-02-02 18:25:31 +00:00
|
|
|
, pythonOlder
|
2022-09-30 11:47:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vector";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.3.1";
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-GpQhDCGl04020Po2wa+5LChXuh0JyCSw1LhhXVH08uU=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
|
|
|
];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
2023-02-02 18:25:31 +00:00
|
|
|
packaging
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
checkInputs = [
|
|
|
|
awkward
|
|
|
|
notebook
|
|
|
|
numba
|
|
|
|
papermill
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"vector"
|
|
|
|
];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
description = "Library for 2D, 3D, and Lorentz vectors, especially arrays of vectors, to solve common physics problems in a NumPy-like way";
|
2022-09-30 11:47:45 +00:00
|
|
|
homepage = "https://github.com/scikit-hep/vector";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/scikit-hep/vector/releases/tag/v${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|