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