mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 23:03:41 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
23 lines
570 B
Nix
23 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";
|
|
};
|
|
}
|