1{ lib 2, buildPythonPackage 3, dissect-cstruct 4, dissect-util 5, fetchFromGitHub 6, setuptools 7, setuptools-scm 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "dissect-ole"; 13 version = "3.6"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "fox-it"; 20 repo = "dissect.ole"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-4shxYKR6IrrMj2BIb5yFD7+C0SNyqsGOoBkWpad1EbI="; 23 }; 24 25 SETUPTOOLS_SCM_PRETEND_VERSION = version; 26 27 nativeBuildInputs = [ 28 setuptools 29 setuptools-scm 30 ]; 31 32 propagatedBuildInputs = [ 33 dissect-cstruct 34 dissect-util 35 ]; 36 37 # Module has no tests 38 doCheck = false; 39 40 pythonImportsCheck = [ 41 "dissect.ole" 42 ]; 43 44 meta = with lib; { 45 description = "Dissect module implementing a parser for the Object Linking & Embedding (OLE) format"; 46 homepage = "https://github.com/fox-it/dissect.ole"; 47 changelog = "https://github.com/fox-it/dissect.ole/releases/tag/${version}"; 48 license = licenses.agpl3Only; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}