python312Packages.libmambapy: fix build

This commit is contained in:
wxt
2024-12-21 21:41:05 +08:00
parent d1543c4cb9
commit 5cc0adf8ef
2 changed files with 20 additions and 14 deletions
+2 -1
View File
@@ -19,9 +19,10 @@
python3Packages,
}:
stdenv.mkDerivation (finalAttrs:{
stdenv.mkDerivation (finalAttrs: {
pname = "libmamba";
version = "2.0.4";
src = fetchFromGitHub {
owner = "mamba-org";
repo = "mamba";
@@ -8,6 +8,7 @@
libmamba,
pybind11,
setuptools,
scikit-build,
fmt,
spdlog,
tl-expected,
@@ -20,36 +21,41 @@
bzip2,
wheel,
}:
buildPythonPackage rec {
pname = "libmambapy";
version = "2024.09.25";
pyproject = true;
src = fetchFromGitHub {
owner = "mamba-org";
repo = "mamba";
rev = "refs/tags/${version}";
hash = "sha256-65XyIlIiUxLGoj11p9fNjauknlVyHPmaTK3LxY+XRV4=";
};
inherit (libmamba) version src;
nativeBuildInputs = [
cmake
ninja
];
env = {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=deprecated-declarations"
];
};
buildInputs = [
(libmamba.override { python3Packages = pythonPackages; })
pybind11
fmt
curl
zstd
bzip2
spdlog
fmt
tl-expected
nlohmann_json
yaml-cpp
reproc
libsolv
curl
zstd
bzip2
];
dependencies = [
scikit-build
pybind11
];
build-system = [
@@ -77,7 +83,6 @@ buildPythonPackage rec {
pypaBuildPhase
'';
pythonImportsCheck = [
"libmambapy"
"libmambapy.bindings"