depot/third_party/nixpkgs/pkgs/development/python-modules/pywavefront/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

45 lines
901 B
Nix

{ 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 ];
};
}