python312Packages.conduit[-mpi]: init at 0.9.3 (#391333)

authored by Gaétan Lepage and committed by GitHub dc18c6f8 91139709

+72
+3
pkgs/by-name/co/conduit/package.nix
··· 7 8 # passthru 9 conduit, 10 nix-update-script, 11 12 mpiSupport ? false, ··· 50 passthru = { 51 tests = { 52 withMpi = conduit.override { mpiSupport = true; }; 53 }; 54 updateScript = nix-update-script { }; 55 };
··· 7 8 # passthru 9 conduit, 10 + python3Packages, 11 nix-update-script, 12 13 mpiSupport ? false, ··· 51 passthru = { 52 tests = { 53 withMpi = conduit.override { mpiSupport = true; }; 54 + pythonModule = python3Packages.conduit; 55 + pythonModuleWithMpi = python3Packages.conduit-mpi; 56 }; 57 updateScript = nix-update-script { }; 58 };
+65
pkgs/development/python-modules/conduit/default.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + pkgs, 5 + buildPythonPackage, 6 + setuptools, 7 + numpy, 8 + pip, 9 + 10 + mpiSupport ? false, 11 + }: 12 + let 13 + conduit = pkgs.conduit.override { inherit mpiSupport; }; 14 + in 15 + buildPythonPackage { 16 + inherit (conduit) 17 + pname 18 + version 19 + src 20 + nativeBuildInputs 21 + buildInputs 22 + ; 23 + pyproject = true; 24 + 25 + # Needed for cmake to find openmpi 26 + strictDeps = false; 27 + 28 + postPatch = '' 29 + substituteInPlace setup.py \ 30 + --replace-fail \ 31 + "'-j2'" \ 32 + "f'-j{os.environ.get(\"NIX_BUILD_CORES\")}'" 33 + ''; 34 + 35 + dontUseCmakeConfigure = true; 36 + 37 + env.ENABLE_MPI = mpiSupport; 38 + 39 + build-system = [ 40 + setuptools 41 + ]; 42 + 43 + dependencies = [ 44 + numpy 45 + pip 46 + ]; 47 + 48 + pythonImportsCheck = [ "conduit" ]; 49 + 50 + # No python tests 51 + doCheck = false; 52 + 53 + meta = { 54 + description = "Python bindings for the conduit library"; 55 + inherit (conduit.meta) 56 + homepage 57 + changelog 58 + license 59 + platforms 60 + ; 61 + maintainers = with lib.maintainers; [ GaetanLepage ]; 62 + # Cross-compilation is broken 63 + broken = stdenv.hostPlatform != stdenv.buildPlatform; 64 + }; 65 + }
+4
pkgs/top-level/python-packages.nix
··· 2646 2647 conda-package-streaming = callPackage ../development/python-modules/conda-package-streaming { }; 2648 2649 confection = callPackage ../development/python-modules/confection { }; 2650 2651 configargparse = callPackage ../development/python-modules/configargparse { };
··· 2646 2647 conda-package-streaming = callPackage ../development/python-modules/conda-package-streaming { }; 2648 2649 + conduit = callPackage ../development/python-modules/conduit { }; 2650 + 2651 + conduit-mpi = callPackage ../development/python-modules/conduit { mpiSupport = true; }; 2652 + 2653 confection = callPackage ../development/python-modules/confection { }; 2654 2655 configargparse = callPackage ../development/python-modules/configargparse { };