nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python,
4 buildPythonPackage,
5 cmake,
6 ninja,
7 libmamba,
8 pybind11,
9 scikit-build-core,
10 fmt,
11 spdlog,
12 tl-expected,
13 nlohmann_json,
14 yaml-cpp,
15 reproc,
16 libsolv,
17 curl,
18 zstd,
19 bzip2,
20}:
21
22buildPythonPackage rec {
23 pname = "libmambapy";
24 pyproject = true;
25
26 inherit (libmamba) version src;
27
28 sourceRoot = "${src.name}/libmambapy";
29
30 build-system = [
31 cmake
32 ninja
33 pybind11
34 scikit-build-core
35 ];
36
37 dontUseCmakeConfigure = true;
38
39 buildInputs = [
40 (libmamba.override { python3 = python; })
41 curl
42 zstd
43 bzip2
44 spdlog
45 fmt
46 tl-expected
47 nlohmann_json
48 yaml-cpp
49 reproc
50 libsolv
51 ];
52
53 pythonImportsCheck = [
54 "libmambapy"
55 "libmambapy.bindings"
56 ];
57
58 meta = {
59 changelog = "https://github.com/mamba-org/mamba/blob/${src.tag}/libmambapy/CHANGELOG.md";
60 description = "Python library for the fast Cross-Platform Package Manager";
61 homepage = "https://github.com/mamba-org/mamba";
62 license = lib.licenses.bsd3;
63 maintainers = [ lib.maintainers.ericthemagician ];
64 };
65}