1{ lib 2, buildPythonPackage 3, fetchPypi 4, pefile 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "autoit-ripper"; 10 version = "1.1.1"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-a30SDJdKoljWjV0O1sZ35NnQPFcJ0XOPcmTanozWpHY="; 18 }; 19 20 propagatedBuildInputs = [ 21 pefile 22 ]; 23 24 postPatch = '' 25 substituteInPlace requirements.txt \ 26 --replace "pefile==2019.4.18" "pefile>=2019.4.18" 27 ''; 28 29 # Project has no tests 30 doCheck = false; 31 32 pythonImportsCheck = [ 33 "autoit_ripper" 34 ]; 35 36 meta = with lib; { 37 description = "Python module to extract AutoIt scripts embedded in PE binaries"; 38 homepage = "https://github.com/nazywam/AutoIt-Ripper"; 39 license = with licenses; [ mit ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}