mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 00:10:12 +00:00
Changelog: - https://gitlab.com/coroner/cryptodatahub/-/blob/v1.6.1/CHANGELOG.rst - https://gitlab.com/coroner/cryptolyzer/-/blob/v1.6.1/CHANGELOG.rst - https://gitlab.com/coroner/cryptoparser/-/blob/v1.6.1/CHANGELOG.rst Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
77 lines
1.5 KiB
Nix
77 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
asn1crypto,
|
|
attrs,
|
|
beautifulsoup4,
|
|
buildPythonPackage,
|
|
certvalidator,
|
|
colorama,
|
|
cryptodatahub,
|
|
cryptoparser,
|
|
dnspython,
|
|
fetchFromGitLab,
|
|
oscrypto,
|
|
pycryptodomex,
|
|
requests,
|
|
setuptools,
|
|
setuptools-scm,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "cryptolyzer";
|
|
version = "1.6.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "coroner";
|
|
repo = "cryptolyzer";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-wGPxK6yL2g7EPb1hyfenm3Op3xJIpJsaWQJcTXx6O/o=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
asn1crypto
|
|
attrs
|
|
beautifulsoup4
|
|
certvalidator
|
|
colorama
|
|
cryptodatahub
|
|
cryptoparser
|
|
dnspython
|
|
oscrypto
|
|
pycryptodomex
|
|
requests
|
|
urllib3
|
|
];
|
|
|
|
# Tests require networking
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
find $out -name "__pycache__" -type d | xargs rm -rv
|
|
|
|
# Prevent creating more binary byte code later (e.g. during
|
|
# pythonImportsCheck)
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
'';
|
|
|
|
pythonImportsCheck = [ "cryptolyzer" ];
|
|
|
|
passthru.updateScript = ../cryptodatahub/update.sh;
|
|
|
|
meta = {
|
|
description = "Cryptographic protocol analyzer";
|
|
homepage = "https://gitlab.com/coroner/cryptolyzer";
|
|
changelog = "https://gitlab.com/coroner/cryptolyzer/-/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
|
|
license = lib.licenses.mpl20;
|
|
mainProgram = "cryptolyze";
|
|
teams = with lib.teams; [ ngi ];
|
|
};
|
|
})
|