python312Packages.libmambapy: fix build
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user