summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pywavefront/default.nix
blob: ce532c26152c1776005d893b31b92c654731488e (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pyglet,
  pytestCheckHook,
  mock,
}:

buildPythonPackage rec {
  pname = "PyWavefront";
  version = "1.3.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pywavefront";
    repo = "PyWavefront";
    rev = version;
    hash = "sha256-ci40L2opJ+NYYtaAeX1Y5pzkdK+loFspTriX/xv4KR8=";
  };

  nativeBuildInputs = [ setuptools ];

  optional-dependencies.visualization = [ pyglet ];

  nativeCheckInputs = [
    pytestCheckHook
    mock
  ];

  pythonImportsCheck = [ "pywavefront" ];

  meta = {
    description = "Python library for importing Wavefront .obj files";
    homepage = "https://github.com/pywavefront/PyWavefront";
    changelog = "https://github.com/pywavefront/PyWavefront/blob/${src.rev}/CHANGELOG.md";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ pbsds ];
  };
}