1{ 2 lib, 3 buildPythonPackage, 4 dissect-cstruct, 5 dissect-util, 6 fetchFromGitHub, 7 pytestCheckHook, 8 pythonOlder, 9 setuptools, 10 setuptools-scm, 11}: 12 13buildPythonPackage rec { 14 pname = "dissect-thumbcache"; 15 version = "1.10"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "fox-it"; 22 repo = "dissect.thumbcache"; 23 tag = version; 24 hash = "sha256-seUhGD0stutZ6jfXDs86V6aiZ5ilUNS6ymBR5E3H9Ug="; 25 }; 26 27 build-system = [ 28 setuptools 29 setuptools-scm 30 ]; 31 32 dependencies = [ 33 dissect-cstruct 34 dissect-util 35 ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 pythonImportsCheck = [ "dissect.thumbcache" ]; 40 41 disabledTests = [ 42 # Don't run Windows related tests 43 "windows" 44 "test_index_type" 45 ]; 46 47 meta = with lib; { 48 description = "Dissect module implementing a parser for the Windows thumbcache"; 49 homepage = "https://github.com/fox-it/dissect.thumbcache"; 50 changelog = "https://github.com/fox-it/dissect.thumbcache/releases/tag/${src.tag}"; 51 license = licenses.agpl3Only; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}