depot/third_party/nixpkgs/pkgs/development/python-modules/tinyobjloader-py/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

30 lines
595 B
Nix

{
lib,
buildPythonPackage,
pybind11,
tinyobjloader,
}:
buildPythonPackage rec {
pname = "tinyobjloader-py";
format = "setuptools";
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";
};
}