Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 96 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697{ lib, python, buildPythonPackage, cmake, ninja, libmamba, pybind11, setuptools, scikit-build, fmt, spdlog, tl-expected, nlohmann_json, yaml-cpp, reproc, libsolv, curl, zstd, bzip2, wheel,}:
buildPythonPackage { pname = "libmambapy"; pyproject = true;
inherit (libmamba) version src;
nativeBuildInputs = [ cmake ninja ];
env = { NIX_CFLAGS_COMPILE = toString [ "-Wno-error=deprecated-declarations" ]; };
buildInputs = [ (libmamba.override { python3 = python; }) curl zstd bzip2 spdlog fmt tl-expected nlohmann_json yaml-cpp reproc libsolv ];
dependencies = [ scikit-build pybind11 ];
build-system = [ setuptools wheel ];
# patch needed to fix setuptools errors # see these for reference # https://stackoverflow.com/questions/72294299/multiple-top-level-packages-discovered-in-a-flat-layout # https://github.com/pypa/setuptools/issues/3197#issuecomment-1078770109 postPatch = '' substituteInPlace libmambapy/setup.py --replace-warn "setuptools.setup()" "setuptools.setup(py_modules=[])" '';
cmakeFlags = [ "-GNinja" (lib.cmakeBool "BUILD_LIBMAMBAPY" true) ];
buildPhase = '' ninjaBuildPhase cp -r libmambapy ../libmambapy cd ../libmambapy pypaBuildPhase '';
pythonImportsCheck = [ "libmambapy" "libmambapy.bindings" ];
meta = { 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 ]; };}