Merge pull request #105543 from IvarWithoutBones/tinyobjloader-init-1.0.6

This commit is contained in:
Sandro
2020-12-01 17:00:47 +01:00
committed by GitHub
4 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
{ lib, buildPythonPackage, pybind11, tinyobjloader }:
buildPythonPackage rec {
pname = "tinyobjloader-py";
inherit (tinyobjloader) version src;
# Build needs headers from ${src}, setting sourceRoot or fetching from pypi won't work.
preConfigure = ''
cd python
'';
buildInputs = [ pybind11 ];
# No tests are included upstream
doCheck = false;
pythonImportsCheck = [ "tinyobjloader" ];
meta = with lib; tinyobjloader.meta // {
description = "Python wrapper for the C++ wavefront .obj loader tinyobjloader";
};
}