2021-04-26 12:55:56 +00:00
|
|
|
{ lib
|
|
|
|
, autoit-ripper
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, karton-core
|
|
|
|
, malduck
|
2022-05-07 18:32:16 +00:00
|
|
|
, pythonOlder
|
2021-04-26 12:55:56 +00:00
|
|
|
, regex
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "karton-autoit-ripper";
|
2022-08-08 15:09:44 +00:00
|
|
|
version = "1.2.0";
|
2022-05-07 18:32:16 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-26 12:55:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CERT-Polska";
|
|
|
|
repo = pname;
|
2023-02-09 11:27:54 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-D+M3JsIN8LUWg8GVweEzySHI7KaBb6cNHHn4pXoq55M=";
|
2021-04-26 12:55:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
autoit-ripper
|
|
|
|
karton-core
|
|
|
|
malduck
|
|
|
|
regex
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
2022-05-07 18:32:16 +00:00
|
|
|
--replace "autoit-ripper==" "autoit-ripper>=" \
|
|
|
|
--replace "malduck==" "malduck>=" \
|
|
|
|
--replace "regex==" "regex>="
|
2021-04-26 12:55:56 +00:00
|
|
|
'';
|
|
|
|
|
2022-05-07 18:32:16 +00:00
|
|
|
# Module has no tests
|
2021-04-26 12:55:56 +00:00
|
|
|
doCheck = false;
|
2022-05-07 18:32:16 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"karton.autoit_ripper"
|
|
|
|
];
|
2021-04-26 12:55:56 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "AutoIt script ripper for Karton framework";
|
|
|
|
homepage = "https://github.com/CERT-Polska/karton-autoit-ripper";
|
2023-02-09 11:27:54 +00:00
|
|
|
changelog = "https://github.com/CERT-Polska/karton-autoit-ripper/releases/tag/v${version}";
|
2021-04-26 12:55:56 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|