depot/third_party/nixpkgs/pkgs/development/python-modules/autoit-ripper/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

42 lines
836 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pefile
, pythonOlder
}:
buildPythonPackage rec {
pname = "autoit-ripper";
version = "1.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-fluG/2XlUh3kPtYtSotrP02c7kdmem92Hy1R93SaTzk=";
};
propagatedBuildInputs = [
pefile
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "pefile==2019.4.18" "pefile>=2019.4.18"
'';
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"autoit_ripper"
];
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 ];
};
}