nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildPythonPackage, isPy3k, fetchPypi, cmake, numpy, pytestCheckHook }:
2
3buildPythonPackage rec {
4 pname = "iminuit";
5 version = "2.11.2";
6 disabled = !isPy3k;
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "sha256-jK55F8otIsaR4AeSv7u4ErhKxcdRIOsq6Hn7StpB7mw=";
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}