nixpkgs/pkgs/development/python-modules/iminuit/default.nix
2023-05-07 00:46:16 +00:00

43 lines
750 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, cmake
, numpy
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "iminuit";
version = "2.21.3";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-+zE/DMJ+IhubIhvNd5s6Zo+0x3sPkKv9UzaDPsvawBY=";
};
nativeBuildInputs = [
cmake
];
propagatedBuildInputs = [
numpy
];
dontUseCmakeConfigure = true;
nativeCheckInputs = [
pytestCheckHook
];
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 ];
};
}