Loading pkgs/by-name/co/conduit/package.nix +3 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ # passthru conduit, python3Packages, nix-update-script, mpiSupport ? false, Loading Loading @@ -50,6 +51,8 @@ stdenv.mkDerivation (finalAttrs: { passthru = { tests = { withMpi = conduit.override { mpiSupport = true; }; pythonModule = python3Packages.conduit; pythonModuleWithMpi = python3Packages.conduit-mpi; }; updateScript = nix-update-script { }; }; Loading pkgs/development/python-modules/conduit/default.nix 0 → 100644 +65 −0 Original line number Diff line number Diff line { lib, stdenv, pkgs, buildPythonPackage, setuptools, numpy, pip, mpiSupport ? false, }: let conduit = pkgs.conduit.override { inherit mpiSupport; }; in buildPythonPackage { 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; }; } pkgs/top-level/python-packages.nix +4 −0 Original line number Diff line number Diff line Loading @@ -2646,6 +2646,10 @@ self: super: with self; { conda-package-streaming = callPackage ../development/python-modules/conda-package-streaming { }; conduit = callPackage ../development/python-modules/conduit { }; conduit-mpi = callPackage ../development/python-modules/conduit { mpiSupport = true; }; confection = callPackage ../development/python-modules/confection { }; configargparse = callPackage ../development/python-modules/configargparse { }; Loading Loading
pkgs/by-name/co/conduit/package.nix +3 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ # passthru conduit, python3Packages, nix-update-script, mpiSupport ? false, Loading Loading @@ -50,6 +51,8 @@ stdenv.mkDerivation (finalAttrs: { passthru = { tests = { withMpi = conduit.override { mpiSupport = true; }; pythonModule = python3Packages.conduit; pythonModuleWithMpi = python3Packages.conduit-mpi; }; updateScript = nix-update-script { }; }; Loading
pkgs/development/python-modules/conduit/default.nix 0 → 100644 +65 −0 Original line number Diff line number Diff line { lib, stdenv, pkgs, buildPythonPackage, setuptools, numpy, pip, mpiSupport ? false, }: let conduit = pkgs.conduit.override { inherit mpiSupport; }; in buildPythonPackage { 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; }; }
pkgs/top-level/python-packages.nix +4 −0 Original line number Diff line number Diff line Loading @@ -2646,6 +2646,10 @@ self: super: with self; { conda-package-streaming = callPackage ../development/python-modules/conda-package-streaming { }; conduit = callPackage ../development/python-modules/conduit { }; conduit-mpi = callPackage ../development/python-modules/conduit { mpiSupport = true; }; confection = callPackage ../development/python-modules/confection { }; configargparse = callPackage ../development/python-modules/configargparse { }; Loading