2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-11-16 04:20:00 +00:00
|
|
|
, pythonOlder
|
|
|
|
|
|
|
|
# build-system
|
2022-06-26 10:26:21 +00:00
|
|
|
, cmake
|
2023-11-16 04:20:00 +00:00
|
|
|
, scikit-build-core
|
|
|
|
, pybind11
|
|
|
|
, pathspec
|
|
|
|
, ninja
|
|
|
|
, pyproject-metadata
|
|
|
|
|
|
|
|
# dependencies
|
2022-06-26 10:26:21 +00:00
|
|
|
, numpy
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
# tests
|
2022-06-26 10:26:21 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "iminuit";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "2.25.2";
|
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-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-O/ihuWhlpgzt8pE19P6uCfp8ZiN9KfaN7WTpeoI6mz4=";
|
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
|
|
|
|
] ++ scikit-build-core.optional-dependencies.pyproject;
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
];
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-26 10:26:21 +00:00
|
|
|
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";
|
|
|
|
license = with licenses; [ mit lgpl2Only ];
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|