depot/third_party/nixpkgs/pkgs/development/python-modules/tinyobjloader-py/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

22 lines
570 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";
};
}