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.1";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "fox-it";
20 repo = "dissect.ole";
21 rev = version;
22 hash = "sha256-qnrbS+gdzBV/mQ08fQzpvevkDtrJ1qXpteW0lxJ+ZUI=";
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 license = licenses.agpl3Only;
48 maintainers = with maintainers; [ fab ];
49 };
50}