1{ lib
2, buildPythonPackage
3, fetchPypi
4, hatch-vcs
5, hatchling
6, numpy
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "vector";
12 version = "0.10.0";
13 format = "pyproject";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "b785678f449de32476f427911248391ddcc7c3582a522a88cbbd50c92dcae490";
18 };
19
20 nativeBuildInputs = [
21 hatch-vcs
22 hatchling
23 ];
24 propagatedBuildInputs = [
25 numpy
26 ];
27
28 checkInputs = [ pytestCheckHook ];
29
30 pythonImportsCheck = [ "vector" ];
31
32 meta = with lib; {
33 description = "A Python 3.7+ library for 2D, 3D, and Lorentz vectors, especially arrays of vectors, to solve common physics problems in a NumPy-like way";
34 homepage = "https://github.com/scikit-hep/vector";
35 license = with licenses; [ bsd3 ];
36 maintainers = with maintainers; [ veprbl ];
37 };
38}