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