at master 966 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 7 # build-system 8 cmake, 9 scikit-build-core, 10 pybind11, 11 pathspec, 12 ninja, 13 pyproject-metadata, 14 15 # dependencies 16 numpy, 17 18 # tests 19 pytestCheckHook, 20}: 21 22buildPythonPackage rec { 23 pname = "iminuit"; 24 version = "2.31.1"; 25 format = "pyproject"; 26 27 disabled = pythonOlder "3.6"; 28 29 src = fetchPypi { 30 inherit pname version; 31 hash = "sha256-1eAE8f/YPSoHZAn79KeWkeehfJ1zlQu2NGWvMuEE3hg="; 32 }; 33 34 nativeBuildInputs = [ 35 cmake 36 scikit-build-core 37 pybind11 38 pathspec 39 ninja 40 pyproject-metadata 41 ]; 42 43 propagatedBuildInputs = [ numpy ]; 44 45 dontUseCmakeConfigure = true; 46 47 nativeCheckInputs = [ pytestCheckHook ]; 48 49 meta = with lib; { 50 homepage = "https://github.com/scikit-hep/iminuit"; 51 description = "Python interface for the Minuit2 C++ library"; 52 license = with licenses; [ 53 mit 54 lgpl2Only 55 ]; 56 maintainers = with maintainers; [ veprbl ]; 57 }; 58}