nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 54 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitLab, 5 fetchFromGitHub, 6 setuptools, 7 dataclasses-json, 8 deprecated, 9 pytestCheckHook, 10}: 11 12let 13 gltf-sample-models = fetchFromGitHub { 14 owner = "KhronosGroup"; 15 repo = "glTF-Sample-Models"; 16 rev = "d7a3cc8e51d7c573771ae77a57f16b0662a905c6"; 17 hash = "sha256-TxSg1O6eIiaKagcZUoWZ5Iw/tBKvQIoepRFp3MdVlyI="; 18 }; 19in 20 21buildPythonPackage rec { 22 pname = "pygltflib"; 23 version = "1.16.5"; 24 pyproject = true; 25 26 src = fetchFromGitLab { 27 owner = "dodgyville"; 28 repo = "pygltflib"; 29 tag = "v${version}"; 30 hash = "sha256-3XfOlL+l0isMFv71+uY/PBHCwND54qACoCVYntfCot4="; 31 }; 32 33 nativeBuildInputs = [ setuptools ]; 34 35 propagatedBuildInputs = [ 36 dataclasses-json 37 deprecated 38 ]; 39 40 nativeCheckInputs = [ pytestCheckHook ]; 41 preCheck = '' 42 ln -s ${gltf-sample-models} glTF-Sample-Models 43 ''; 44 45 pythonImportsCheck = [ "pygltflib" ]; 46 47 meta = { 48 description = "Module for reading and writing basic glTF files"; 49 homepage = "https://gitlab.com/dodgyville/pygltflib"; 50 changelog = "https://gitlab.com/dodgyville/pygltflib/-/blob/v${version}/CHANGELOG.md"; 51 license = lib.licenses.mit; 52 maintainers = with lib.maintainers; [ bcdarwin ]; 53 }; 54}