python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / pygltflib / default.nix
blobbbfb1d08745d2b7a67897980bfb12bb8acb71060
2   lib,
3   buildPythonPackage,
4   fetchFromGitLab,
5   fetchFromGitHub,
6   pythonOlder,
7   setuptools,
8   dataclasses-json,
9   deprecated,
10   pytestCheckHook,
13 let
14   gltf-sample-models = fetchFromGitHub {
15     owner = "KhronosGroup";
16     repo = "glTF-Sample-Models";
17     rev = "d7a3cc8e51d7c573771ae77a57f16b0662a905c6";
18     hash = "sha256-TxSg1O6eIiaKagcZUoWZ5Iw/tBKvQIoepRFp3MdVlyI=";
19   };
22 buildPythonPackage rec {
23   pname = "pygltflib";
24   version = "1.16.2";
25   pyproject = true;
27   disabled = pythonOlder "3.6";
29   src = fetchFromGitLab {
30     owner = "dodgyville";
31     repo = "pygltflib";
32     rev = "refs/tags/v${version}";
33     hash = "sha256-rUAg05M5biVsdG2yEH0Olng/0jH1R/Jo5/+j4ToKkTI=";
34   };
36   nativeBuildInputs = [ setuptools ];
38   propagatedBuildInputs = [
39     dataclasses-json
40     deprecated
41   ];
43   nativeCheckInputs = [ pytestCheckHook ];
44   preCheck = ''
45     ln -s ${gltf-sample-models} glTF-Sample-Models
46   '';
48   pythonImportsCheck = [ "pygltflib" ];
50   meta = with lib; {
51     description = "Module for reading and writing basic glTF files";
52     homepage = "https://gitlab.com/dodgyville/pygltflib";
53     changelog = "https://gitlab.com/dodgyville/pygltflib/-/blob/v${version}/CHANGELOG.md";
54     license = licenses.mit;
55     maintainers = with maintainers; [ bcdarwin ];
56   };