depot/third_party/nixpkgs/pkgs/development/python-modules/tinyobjloader-py/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

27 lines
569 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 = tinyobjloader.meta // {
description = "Python wrapper for the C++ wavefront .obj loader tinyobjloader";
};
}