at 24.11-pre 1.1 kB view raw
1{ 2 lib, 3 awkward, 4 buildPythonPackage, 5 fetchPypi, 6 hatch-vcs, 7 hatchling, 8 numba, 9 numpy, 10 notebook, 11 packaging, 12 papermill, 13 pytestCheckHook, 14 pythonOlder, 15}: 16 17buildPythonPackage rec { 18 pname = "vector"; 19 version = "1.3.1"; 20 format = "pyproject"; 21 22 disabled = pythonOlder "3.8"; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-GpQhDCGl04020Po2wa+5LChXuh0JyCSw1LhhXVH08uU="; 27 }; 28 29 nativeBuildInputs = [ 30 hatch-vcs 31 hatchling 32 ]; 33 34 propagatedBuildInputs = [ 35 numpy 36 packaging 37 ]; 38 39 checkInputs = [ 40 awkward 41 notebook 42 numba 43 papermill 44 pytestCheckHook 45 ]; 46 47 pythonImportsCheck = [ "vector" ]; 48 49 __darwinAllowLocalNetworking = true; 50 51 meta = with lib; { 52 description = "Library for 2D, 3D, and Lorentz vectors, especially arrays of vectors, to solve common physics problems in a NumPy-like way"; 53 homepage = "https://github.com/scikit-hep/vector"; 54 changelog = "https://github.com/scikit-hep/vector/releases/tag/v${version}"; 55 license = with licenses; [ bsd3 ]; 56 maintainers = with maintainers; [ veprbl ]; 57 }; 58}