2020-12-03 08:41:04 +00:00
|
|
|
{ lib, buildPythonPackage, pybind11, tinyobjloader }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tinyobjloader-py";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-12-03 08:41:04 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|