at master 919 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 meson, 6 meson-python, 7 cython, 8 attrs, 9 useful-types, 10 pytestCheckHook, 11 pillow, 12 pytest-regressions, 13 dirty-equals, 14}: 15let 16 pname = "srctools"; 17 version = "2.6.1"; 18in 19buildPythonPackage { 20 inherit pname version; 21 format = "pyproject"; 22 23 src = fetchPypi { 24 inherit pname version; 25 hash = "sha256-EPdK8IALfcPhfzHiAR2FC821Z0Igkik9+mpky3eIsoM="; 26 }; 27 28 build-system = [ 29 meson 30 meson-python 31 cython 32 ]; 33 34 dependencies = [ 35 attrs 36 useful-types 37 ]; 38 39 nativeCheckInputs = [ 40 pytestCheckHook 41 pillow 42 pytest-regressions 43 dirty-equals 44 ]; 45 46 pythonImportsCheck = [ "srctools" ]; 47 48 meta = { 49 description = "Modules for working with Valve's Source Engine file formats"; 50 homepage = "https://github.com/TeamSpen210/srctools"; 51 license = lib.licenses.mit; 52 maintainers = with lib.maintainers; [ different-name ]; 53 }; 54}