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