nixpkgs/pkgs/development/python-modules/vector/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.1 KiB
Nix
Raw Normal View History

2022-09-25 00:12:47 +00:00
{ lib
, awkward
2022-09-25 00:12:47 +00:00
, buildPythonPackage
, fetchPypi
, hatch-vcs
, hatchling
, numba
2022-09-25 00:12:47 +00:00
, numpy
, notebook
, packaging
, papermill
2022-09-25 00:12:47 +00:00
, pytestCheckHook
, pythonOlder
2022-09-25 00:12:47 +00:00
}:
buildPythonPackage rec {
pname = "vector";
version = "1.0.0";
2022-09-25 00:12:47 +00:00
format = "pyproject";
disabled = pythonOlder "3.8";
2022-09-25 00:12:47 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-T62k/dqlwb1ppbopb/2UjMy1da16vlPRSWD1b+Mt1ME=";
2022-09-25 00:12:47 +00:00
};
nativeBuildInputs = [
hatch-vcs
hatchling
];
2022-09-25 00:12:47 +00:00
propagatedBuildInputs = [
numpy
packaging
2022-09-25 00:12:47 +00:00
];
checkInputs = [
awkward
notebook
numba
papermill
pytestCheckHook
];
pythonImportsCheck = [
"vector"
];
2022-09-25 00:12:47 +00:00
__darwinAllowLocalNetworking = true;
2022-09-25 00:12:47 +00:00
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";
2022-09-25 00:12:47 +00:00
homepage = "https://github.com/scikit-hep/vector";
changelog = "https://github.com/scikit-hep/vector/releases/tag/v${version}";
2022-09-25 00:12:47 +00:00
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ veprbl ];
};
}