2024-05-07 23:10:32 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
dissect-cstruct,
|
|
|
|
dissect-util,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
pythonOlder,
|
2022-10-07 20:16:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dissect-ole";
|
2024-07-04 19:53:28 +00:00
|
|
|
version = "3.9";
|
2024-05-07 23:10:10 +00:00
|
|
|
pyproject = true;
|
2022-10-07 20:16:29 +00:00
|
|
|
|
2024-07-04 19:53:28 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2022-10-07 20:16:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fox-it";
|
|
|
|
repo = "dissect.ole";
|
2023-02-11 09:29:24 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-07-04 19:53:28 +00:00
|
|
|
hash = "sha256-MW76O7JH9hkDlIncPqoydZ8bzpmXqmvvm0i1IOF6Pnk=";
|
2022-10-07 20:16:29 +00:00
|
|
|
};
|
|
|
|
|
2024-05-07 23:10:10 +00:00
|
|
|
build-system = [
|
2022-10-07 20:16:29 +00:00
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-05-07 23:10:10 +00:00
|
|
|
dependencies = [
|
2022-10-07 20:16:29 +00:00
|
|
|
dissect-cstruct
|
|
|
|
dissect-util
|
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-05-07 23:10:32 +00:00
|
|
|
pythonImportsCheck = [ "dissect.ole" ];
|
2022-10-07 20:16:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Dissect module implementing a parser for the Object Linking & Embedding (OLE) format";
|
|
|
|
homepage = "https://github.com/fox-it/dissect.ole";
|
2023-02-11 09:29:24 +00:00
|
|
|
changelog = "https://github.com/fox-it/dissect.ole/releases/tag/${version}";
|
2022-10-07 20:16:29 +00:00
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|