mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
43 lines
750 B
Nix
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 ];
|
|
};
|
|
}
|