1{ 2 lib, 3 buildPythonPackage, 4 dissect-cstruct, 5 dissect-util, 6 fetchFromGitHub, 7 pythonOlder, 8 setuptools, 9 setuptools-scm, 10}: 11 12buildPythonPackage rec { 13 pname = "dissect-jffs"; 14 version = "1.5"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "fox-it"; 21 repo = "dissect.jffs"; 22 tag = version; 23 hash = "sha256-HXGmZZd+fYnOCEpffdZe9dOLJS3jY7dIrb6rmhgbYyw="; 24 }; 25 26 nativeBuildInputs = [ 27 setuptools 28 setuptools-scm 29 ]; 30 31 propagatedBuildInputs = [ 32 dissect-cstruct 33 dissect-util 34 ]; 35 36 pythonImportsCheck = [ "dissect.jffs" ]; 37 38 meta = with lib; { 39 description = "Dissect module implementing a parser for the JFFS2 file system"; 40 homepage = "https://github.com/fox-it/dissect.jffs"; 41 changelog = "https://github.com/fox-it/dissect.jffs/releases/tag/${src.tag}"; 42 license = licenses.agpl3Only; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}