Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 26 lines 692 B view raw
1{ lib, buildPythonPackage, isPy3k, fetchPypi, cmake, numpy, pytestCheckHook }: 2 3buildPythonPackage rec { 4 pname = "iminuit"; 5 version = "2.4.0"; 6 disabled = !isPy3k; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "350c13d33f3ec5884335aea1cc11a17ae49dd8e6b2181c3f1b3c9c27e2e0b228"; 11 }; 12 13 nativeBuildInputs = [ cmake ]; 14 propagatedBuildInputs = [ numpy ]; 15 16 dontUseCmakeConfigure = true; 17 18 checkInputs = [ pytestCheckHook ]; 19 20 meta = with lib; { 21 homepage = "https://github.com/scikit-hep/iminuit"; 22 description = "Python interface for the Minuit2 C++ library"; 23 license = with licenses; [ mit lgpl2Only ]; 24 maintainers = with maintainers; [ veprbl ]; 25 }; 26}