17 buildPythonPackage rec {
21 src = fetchFromGitHub {
22 owner = "AcademySoftwareFoundation";
25 hash = "sha256-WzzsY1hOWwJEqT/ZRLIoZDfKNvx1Yf6aFhA3ZcSPx+s=";
40 ++ lib.optionals stdenv.hostPlatform.isDarwin [
43 ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
50 (lib.cmakeBool "MATERIALX_BUILD_OIIO" true)
51 (lib.cmakeBool "MATERIALX_BUILD_PYTHON" true)
52 (lib.cmakeBool "MATERIALX_BUILD_GEN_MSL" (
53 stdenv.hostPlatform.isLinux || stdenv.hostPlatform.isDarwin
57 pythonImportsCheck = [ "MaterialX" ];
60 # Make python lib properly accessible
61 target_dir=$out/${python.sitePackages}
62 mkdir -p $(dirname $target_dir)
63 # required for cmake to find the bindings, when included in other projects
64 ln -s $out/python $target_dir
68 changelog = "https://github.com/AcademySoftwareFoundation/MaterialX/blob/${src.tag}/CHANGELOG.md";
69 description = "Open standard for representing rich material and look-development content in computer graphics";
70 homepage = "https://materialx.org";
71 maintainers = [ lib.maintainers.gador ];
72 platforms = lib.platforms.unix;
73 license = lib.licenses.mpl20;