2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
cmake,
|
|
|
|
scikit-build-core,
|
|
|
|
pybind11,
|
|
|
|
pathspec,
|
|
|
|
ninja,
|
|
|
|
pyproject-metadata,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
numpy,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pytestCheckHook,
|
2022-06-26 10:26:21 +00:00
|
|
|
}:
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "iminuit";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.29.1";
|
2023-11-16 04:20:00 +00:00
|
|
|
format = "pyproject";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-R00Q6y+SS5Mg9vcJPkwUnQo4wSTQQZwSoHo+ypQt4CU=";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2023-11-16 04:20:00 +00:00
|
|
|
scikit-build-core
|
|
|
|
pybind11
|
|
|
|
pathspec
|
|
|
|
ninja
|
|
|
|
pyproject-metadata
|
2024-09-19 14:19:46 +00:00
|
|
|
];
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/scikit-hep/iminuit";
|
|
|
|
description = "Python interface for the Minuit2 C++ library";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = with licenses; [
|
|
|
|
mit
|
|
|
|
lgpl2Only
|
|
|
|
];
|
2021-03-20 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|