1{ lib, buildPythonPackage, pybind11, tinyobjloader }: 2 3buildPythonPackage rec { 4 pname = "tinyobjloader-py"; 5 inherit (tinyobjloader) version src; 6 7 # Build needs headers from ${src}, setting sourceRoot or fetching from pypi won't work. 8 preConfigure = '' 9 cd python 10 ''; 11 12 buildInputs = [ pybind11 ]; 13 14 # No tests are included upstream 15 doCheck = false; 16 pythonImportsCheck = [ "tinyobjloader" ]; 17 18 meta = with lib; tinyobjloader.meta // { 19 description = "Python wrapper for the C++ wavefront .obj loader tinyobjloader"; 20 }; 21}