From 56bb9fb23d8f2b31f664d0120d4932a619ed8245 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Sat, 24 Sep 2022 20:12:47 -0400 Subject: [PATCH] python3Packages.vector: init at 0.10.0 --- .../python-modules/vector/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/vector/default.nix diff --git a/pkgs/development/python-modules/vector/default.nix b/pkgs/development/python-modules/vector/default.nix new file mode 100644 index 000000000000..706c6eb85ec8 --- /dev/null +++ b/pkgs/development/python-modules/vector/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchPypi +, hatch-vcs +, hatchling +, numpy +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "vector"; + version = "0.10.0"; + format = "pyproject"; + + src = fetchPypi { + inherit pname version; + sha256 = "b785678f449de32476f427911248391ddcc7c3582a522a88cbbd50c92dcae490"; + }; + + nativeBuildInputs = [ + hatch-vcs + hatchling + ]; + propagatedBuildInputs = [ + numpy + ]; + + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "vector" ]; + + meta = with lib; { + 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"; + homepage = "https://github.com/scikit-hep/vector"; + license = with licenses; [ bsd3 ]; + maintainers = with maintainers; [ veprbl ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index eb4600bcaaec..a151f079da6b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11508,6 +11508,8 @@ in { vdirsyncer = callPackage ../development/python-modules/vdirsyncer { }; + vector = callPackage ../development/python-modules/vector { }; + vehicle = callPackage ../development/python-modules/vehicle { }; vega = callPackage ../development/python-modules/vega { };