depot/third_party/nixpkgs/pkgs/development/python-modules/vector/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

59 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.1.1.post1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-elWuVJgW5fyg5S+rjMZtSw5Ls7d1OTPoW0FnZXlANys=";
};
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 ];
};
}