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