Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pygltflib / default.nix
blob7212192b260fcc279f3691a9bf791a9736eab04b
1 { lib
2 , buildPythonPackage
3 , fetchFromGitLab
4 , fetchFromGitHub
5 , pythonOlder
6 , setuptools
7 , dataclasses-json
8 , deprecated
9 , pytestCheckHook
12 let
13   gltf-sample-models = fetchFromGitHub {
14     owner = "KhronosGroup";
15     repo = "glTF-Sample-Models";
16     rev = "d7a3cc8e51d7c573771ae77a57f16b0662a905c6";
17     hash = "sha256-TxSg1O6eIiaKagcZUoWZ5Iw/tBKvQIoepRFp3MdVlyI=";
18   };
21 buildPythonPackage rec {
22   pname = "pygltflib";
23   version = "1.16.2";
24   pyproject = true;
26   disabled = pythonOlder "3.6";
28   src = fetchFromGitLab {
29     owner = "dodgyville";
30     repo = "pygltflib";
31     rev = "refs/tags/v${version}";
32     hash = "sha256-rUAg05M5biVsdG2yEH0Olng/0jH1R/Jo5/+j4ToKkTI=";
33   };
35   nativeBuildInputs = [
36     setuptools
37   ];
39   propagatedBuildInputs = [
40     dataclasses-json
41     deprecated
42   ];
44   nativeCheckInputs = [
45     pytestCheckHook
46   ];
47   preCheck = ''
48     ln -s ${gltf-sample-models} glTF-Sample-Models
49   '';
51   pythonImportsCheck = [ "pygltflib" ];
53   meta = with lib; {
54     description = "Module for reading and writing basic glTF files";
55     homepage = "https://gitlab.com/dodgyville/pygltflib";
56     changelog = "https://gitlab.com/dodgyville/pygltflib/-/blob/v${version}/CHANGELOG.md";
57     license = licenses.mit;
58     maintainers = with maintainers; [ bcdarwin ];
59   };