Files
phanirithvij 25c45943c6 python3Packages.cryptolyzer: 1.0.2 -> 1.1.0
use finalAttrs
use fetchFromGitLab

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
2026-04-20 11:42:15 +02:00

80 lines
1.5 KiB
Nix

{
lib,
attrs,
beautifulsoup4,
buildPythonPackage,
certvalidator,
colorama,
cryptoparser,
dnspython,
fetchFromGitLab,
pathlib2,
pyfakefs,
python-dateutil,
requests,
setuptools,
setuptools-scm,
urllib3,
}:
buildPythonPackage (finalAttrs: {
pname = "cryptolyzer";
version = "1.1.0";
pyproject = true;
src = fetchFromGitLab {
owner = "coroner";
repo = "cryptolyzer";
tag = "v${finalAttrs.version}";
hash = "sha256-z9RuboCWHEqw4aFfQTjWly/UP9Yed0R+VdMLVXxdBmc=";
};
patches = [
# https://gitlab.com/coroner/cryptolyzer/-/merge_requests/4
./fix-dirs-exclude.patch
];
pythonRemoveDeps = [ "bs4" ];
build-system = [
setuptools
setuptools-scm
];
dependencies = [
attrs
beautifulsoup4
certvalidator
colorama
cryptoparser
dnspython
pathlib2
pyfakefs
python-dateutil
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" ];
meta = {
description = "Cryptographic protocol analyzer";
homepage = "https://gitlab.com/coroner/cryptolyzer";
changelog = "https://gitlab.com/coroner/cryptolyzer/-/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.mpl20;
mainProgram = "cryptolyze";
teams = with lib.teams; [ ngi ];
};
})