1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pyglet,
7 pytestCheckHook,
8 mock,
9}:
10
11buildPythonPackage rec {
12 pname = "PyWavefront";
13 version = "1.3.3";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "pywavefront";
18 repo = "PyWavefront";
19 rev = version;
20 hash = "sha256-ci40L2opJ+NYYtaAeX1Y5pzkdK+loFspTriX/xv4KR8=";
21 };
22
23 nativeBuildInputs = [ setuptools ];
24
25 optional-dependencies.visualization = [ pyglet ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 mock
30 ];
31
32 pythonImportsCheck = [ "pywavefront" ];
33
34 meta = with lib; {
35 description = "Python library for importing Wavefront .obj files";
36 homepage = "https://github.com/pywavefront/PyWavefront";
37 changelog = "https://github.com/pywavefront/PyWavefront/blob/${src.rev}/CHANGELOG.md";
38 license = licenses.bsd3;
39 maintainers = with maintainers; [ pbsds ];
40 };
41}