mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
Changelog: https://gitlab.com/coroner/cryptolyzer/-/blob/v1.0.2/CHANGELOG.rst Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
82 lines
1.5 KiB
Nix
82 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
attrs,
|
|
beautifulsoup4,
|
|
buildPythonPackage,
|
|
certvalidator,
|
|
colorama,
|
|
cryptoparser,
|
|
dnspython,
|
|
fetchPypi,
|
|
pathlib2,
|
|
pyfakefs,
|
|
python-dateutil,
|
|
pythonOlder,
|
|
requests,
|
|
setuptools,
|
|
setuptools-scm,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cryptolyzer";
|
|
version = "1.0.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-c/cBOrvqyvdGfDKPRUhIu9FqtQUERb/fJBGmncZpbSM=";
|
|
};
|
|
|
|
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${version}/CHANGELOG.md";
|
|
license = lib.licenses.mpl20;
|
|
mainProgram = "cryptolyze";
|
|
maintainers = with lib.maintainers; [ kranzes ];
|
|
teams = with lib.teams; [ ngi ];
|
|
};
|
|
}
|