diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/vector/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/vector/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/vector/default.nix b/nixpkgs/pkgs/development/python-modules/vector/default.nix new file mode 100644 index 000000000000..7edad1b6321a --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/vector/default.nix @@ -0,0 +1,59 @@ +{ lib +, awkward +, buildPythonPackage +, fetchPypi +, hatch-vcs +, hatchling +, numba +, numpy +, notebook +, packaging +, papermill +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "vector"; + version = "1.3.1"; + format = "pyproject"; + + disabled = pythonOlder "3.8"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-GpQhDCGl04020Po2wa+5LChXuh0JyCSw1LhhXVH08uU="; + }; + + 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 ]; + }; +} |