1{ lib
2, buildPythonPackage
3, fetchPypi
4, cmake
5, numpy
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "iminuit";
12 version = "2.17.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-dfSoorrSH9p7a9Qt98oEEg+yRjbr+bVm0lmybyBEsdA=";
20 };
21
22 nativeBuildInputs = [
23 cmake
24 ];
25
26 propagatedBuildInputs = [
27 numpy
28 ];
29
30 dontUseCmakeConfigure = true;
31
32 checkInputs = [
33 pytestCheckHook
34 ];
35
36 meta = with lib; {
37 homepage = "https://github.com/scikit-hep/iminuit";
38 description = "Python interface for the Minuit2 C++ library";
39 license = with licenses; [ mit lgpl2Only ];
40 maintainers = with maintainers; [ veprbl ];
41 };
42}