about summary refs log tree commit diff
path: root/pkgs/development/python-modules/tinyobjloader-py/default.nix
blob: 21dc0a5f4ddf25e6ce86ac428f7c7523dd51551c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ 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";
  };
}