mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
28 lines
569 B
Nix
28 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";
|
|
};
|
|
}
|