2021-04-26 13:59:46 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-11-29 08:30:43 +00:00
|
|
|
, pefile
|
2021-04-26 13:59:46 +01:00
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "autoit-ripper";
|
2021-11-29 08:30:43 +00:00
|
|
|
version = "1.1.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-26 13:59:46 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-11-29 08:30:43 +00:00
|
|
|
sha256 = "sha256-fluG/2XlUh3kPtYtSotrP02c7kdmem92Hy1R93SaTzk=";
|
2021-04-26 13:59:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-11-29 08:30:43 +00:00
|
|
|
pefile
|
2021-04-26 13:59:46 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-11-29 08:30:43 +00:00
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "pefile==2019.4.18" "pefile>=2019.4.18"
|
2021-04-26 13:59:46 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
2021-11-29 08:30:43 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"autoit_ripper"
|
|
|
|
];
|
2021-04-26 13:59:46 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to extract AutoIt scripts embedded in PE binaries";
|
|
|
|
homepage = "https://github.com/nazywam/AutoIt-Ripper";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|