depot/third_party/nixpkgs/pkgs/development/python-modules/iocsearcher/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

67 lines
1.3 KiB
Nix

{
lib,
beautifulsoup4,
buildPythonPackage,
fetchFromGitHub,
base58,
bech32,
cashaddress,
cbor,
eth-hash,
intervaltree,
langdetect,
lxml,
pdfminer-six,
phonenumbers,
python-magic,
readabilipy,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "iocsearcher";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "malicialab";
repo = "iocsearcher";
rev = "5f7b87761f2195eb358006f3492f0beac7ecc4b0";
hash = "sha256-SYh0+JEZa95iBznNzXut/9Vwof6VFeSlt0/g+XmMPC0=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
base58
beautifulsoup4
bech32
cashaddress
cbor
eth-hash
intervaltree
langdetect
lxml
pdfminer-six
phonenumbers
python-magic
readabilipy
] ++ eth-hash.optional-dependencies.pycryptodome;
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "iocsearcher" ];
meta = with lib; {
description = "Library and command line tool for extracting indicators of compromise (IOCs)";
mainProgram = "iocsearcher";
homepage = "https://github.com/malicialab/iocsearcher";
changelog = "https://github.com/malicialab/iocsearcher/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}