blob: e3fa1b223e19b170d54c741ac2fe09f81750650d (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonPackage,
fetchFromGitLab,
fetchFromGitHub,
setuptools,
dataclasses-json,
deprecated,
pytestCheckHook,
}:
let
gltf-sample-models = fetchFromGitHub {
owner = "KhronosGroup";
repo = "glTF-Sample-Models";
rev = "d7a3cc8e51d7c573771ae77a57f16b0662a905c6";
hash = "sha256-TxSg1O6eIiaKagcZUoWZ5Iw/tBKvQIoepRFp3MdVlyI=";
};
in
buildPythonPackage rec {
pname = "pygltflib";
version = "1.16.5";
pyproject = true;
src = fetchFromGitLab {
owner = "dodgyville";
repo = "pygltflib";
tag = "v${version}";
hash = "sha256-3XfOlL+l0isMFv71+uY/PBHCwND54qACoCVYntfCot4=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
dataclasses-json
deprecated
];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
ln -s ${gltf-sample-models} glTF-Sample-Models
'';
pythonImportsCheck = [ "pygltflib" ];
meta = {
description = "Module for reading and writing basic glTF files";
homepage = "https://gitlab.com/dodgyville/pygltflib";
changelog = "https://gitlab.com/dodgyville/pygltflib/-/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}
|