1{ lib 2, buildPythonPackage 3, dissect-cstruct 4, fetchFromGitHub 5, setuptools 6, setuptools-scm 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "dissect-clfs"; 13 version = "1.1"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "fox-it"; 20 repo = "dissect.clfs"; 21 rev = version; 22 hash = "sha256-5rG8YiVBU4ETLgQoFnMaeXHttIB26+OhIdYjKDKmPBc="; 23 }; 24 25 SETUPTOOLS_SCM_PRETEND_VERSION = version; 26 27 nativeBuildInputs = [ 28 setuptools 29 setuptools-scm 30 ]; 31 32 propagatedBuildInputs = [ 33 dissect-cstruct 34 ]; 35 36 checkInputs = [ 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "dissect.clfs" 42 ]; 43 44 meta = with lib; { 45 description = "Dissect module implementing a parser for the CLFS (Common Log File System) file system"; 46 homepage = "https://github.com/fox-it/dissect.clfs"; 47 license = licenses.agpl3Only; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}