summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tinyobjloader-py/default.nix
blob: 6be11a91b581f0f10cc04379fbceca302d97d405 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  lib,
  buildPythonPackage,
  pybind11,
  tinyobjloader,
}:

buildPythonPackage {
  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";
  };
}