summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/libmambapy/default.nix
blob: 84eada8537bba5c304c8d022b6e2e68ad86e03b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
  lib,
  python,
  buildPythonPackage,
  cmake,
  ninja,
  libmamba,
  pybind11,
  scikit-build-core,
  fmt,
  spdlog,
  tl-expected,
  nlohmann_json,
  yaml-cpp,
  reproc,
  libsolv,
  curl,
  zstd,
  bzip2,
}:

buildPythonPackage rec {
  pname = "libmambapy";
  pyproject = true;

  inherit (libmamba) version src;

  sourceRoot = "${src.name}/libmambapy";

  build-system = [
    cmake
    ninja
    pybind11
    scikit-build-core
  ];

  dontUseCmakeConfigure = true;

  buildInputs = [
    (libmamba.override { python3 = python; })
    curl
    zstd
    bzip2
    spdlog
    fmt
    tl-expected
    nlohmann_json
    yaml-cpp
    reproc
    libsolv
  ];

  pythonImportsCheck = [
    "libmambapy"
    "libmambapy.bindings"
  ];

  meta = {
    changelog = "https://github.com/mamba-org/mamba/blob/${src.tag}/libmambapy/CHANGELOG.md";
    description = "Python library for the fast Cross-Platform Package Manager";
    homepage = "https://github.com/mamba-org/mamba";
    license = lib.licenses.bsd3;
    maintainers = [ lib.maintainers.ericthemagician ];
  };
}