nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5
6 # build-system
7 cmake,
8 scikit-build-core,
9 pybind11,
10 pathspec,
11 ninja,
12 pyproject-metadata,
13
14 # dependencies
15 numpy,
16
17 # tests
18 pytestCheckHook,
19}:
20
21buildPythonPackage rec {
22 pname = "iminuit";
23 version = "2.32.0";
24 pyproject = true;
25
26 src = fetchPypi {
27 inherit pname version;
28 hash = "sha256-oys00YZllZvnWta9sd2ARZu5RGbGK0VWMcAFaKzN99I=";
29 };
30
31 build-system = [
32 cmake
33 scikit-build-core
34 pybind11
35 pathspec
36 ninja
37 pyproject-metadata
38 ];
39
40 dependencies = [ numpy ];
41
42 dontUseCmakeConfigure = true;
43
44 nativeCheckInputs = [ pytestCheckHook ];
45
46 meta = {
47 homepage = "https://github.com/scikit-hep/iminuit";
48 changelog = "https://github.com/scikit-hep/iminuit/releases/tag/v${version}";
49 description = "Python interface for the Minuit2 C++ library";
50 license = with lib.licenses; [
51 mit
52 lgpl2Only
53 ];
54 maintainers = with lib.maintainers; [ veprbl ];
55 };
56}