diff options
Diffstat (limited to 'pkgs/development/python-modules/pywavefront/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pywavefront/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pywavefront/default.nix b/pkgs/development/python-modules/pywavefront/default.nix new file mode 100644 index 0000000000000..534b5647c046d --- /dev/null +++ b/pkgs/development/python-modules/pywavefront/default.nix @@ -0,0 +1,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 ]; + + passthru.optional-dependencies.visualization = [ pyglet ]; + + nativeCheckInputs = [ + pytestCheckHook + mock + ]; + + pythonImportsCheck = [ "pywavefront" ]; + + meta = with lib; { + 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 = licenses.bsd3; + maintainers = with maintainers; [ pbsds ]; + }; +} |