python3Packages.oletools: modernize
This commit is contained in:
@@ -7,11 +7,12 @@
|
||||
msoffcrypto-tool,
|
||||
olefile,
|
||||
pcodedmp,
|
||||
setuptools,
|
||||
pyparsing,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "oletools";
|
||||
version = "0.60.2";
|
||||
format = "setuptools";
|
||||
@@ -19,11 +20,15 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "decalage2";
|
||||
repo = "oletools";
|
||||
rev = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-ons1VeWStxUZw2CPpnX9p5I3Q7cMhi34JU8TeuUDt+Y=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pythonRelaxDeps = [ "pyparsing" ];
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
colorclass
|
||||
easygui
|
||||
msoffcrypto-tool
|
||||
@@ -34,11 +39,6 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pyparsing>=2.1.0,<3" "pyparsing>=2.1.0"
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# Test fails with AssertionError: Tuples differ: ('MS Word 2007+...
|
||||
"test_all"
|
||||
@@ -54,10 +54,11 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Module to analyze MS OLE2 files and MS Office documents";
|
||||
homepage = "https://github.com/decalage2/oletools";
|
||||
changelog = "https://github.com/decalage2/oletools/releases/tag/${finalAttrs.src.tag}";
|
||||
license = with lib.licenses; [
|
||||
bsd2 # and
|
||||
mit
|
||||
];
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user