Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 65 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, stdenv, pkgs, buildPythonPackage, setuptools, numpy, pip,
mpiSupport ? false,}:let conduit = pkgs.conduit.override { inherit mpiSupport; };inbuildPythonPackage { inherit (conduit) pname version src nativeBuildInputs buildInputs ; pyproject = true;
# Needed for cmake to find openmpi strictDeps = false;
postPatch = '' substituteInPlace setup.py \ --replace-fail \ "'-j2'" \ "f'-j{os.environ.get(\"NIX_BUILD_CORES\")}'" '';
dontUseCmakeConfigure = true;
env.ENABLE_MPI = mpiSupport;
build-system = [ setuptools ];
dependencies = [ numpy pip ];
pythonImportsCheck = [ "conduit" ];
# No python tests doCheck = false;
meta = { description = "Python bindings for the conduit library"; inherit (conduit.meta) homepage changelog license platforms ; maintainers = with lib.maintainers; [ GaetanLepage ]; # Cross-compilation is broken broken = stdenv.hostPlatform != stdenv.buildPlatform; };}