Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 62 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, buildPythonPackage, colorclass, easygui, fetchFromGitHub, msoffcrypto-tool, olefile, pcodedmp, pyparsing, pytestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "oletools"; version = "0.60.2"; format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "decalage2"; repo = "oletools"; rev = "v${version}"; hash = "sha256-ons1VeWStxUZw2CPpnX9p5I3Q7cMhi34JU8TeuUDt+Y="; };
propagatedBuildInputs = [ colorclass easygui msoffcrypto-tool olefile pcodedmp pyparsing ];
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" "test_xlm" ];
pythonImportsCheck = [ "oletools" ];
meta = with lib; { description = "Module to analyze MS OLE2 files and MS Office documents"; homepage = "https://github.com/decalage2/oletools"; license = with licenses; [ bsd2 # and mit ]; maintainers = with maintainers; [ fab ]; };}