2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
attrs,
|
|
|
|
beautifulsoup4,
|
|
|
|
buildPythonPackage,
|
|
|
|
certvalidator,
|
|
|
|
colorama,
|
|
|
|
cryptoparser,
|
|
|
|
dnspython,
|
|
|
|
fetchPypi,
|
|
|
|
pathlib2,
|
|
|
|
pyfakefs,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
|
|
|
urllib3,
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cryptolyzer";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.12.3";
|
2024-02-07 01:22:34 +00:00
|
|
|
pyproject = true;
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "CryptoLyzer";
|
|
|
|
inherit version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-UdM0+PkO3K4XshcqaDkEKry6Spny9KMZAHiADxxth+c=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace-warn "attrs>=20.3.0,<22.0.1" "attrs>=20.3.0" \
|
|
|
|
--replace-warn "bs4" "beautifulsoup4"
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-02-07 01:22:34 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
2024-02-07 01:22:34 +00:00
|
|
|
beautifulsoup4
|
|
|
|
certvalidator
|
|
|
|
colorama
|
2022-08-12 12:06:08 +00:00
|
|
|
cryptoparser
|
2024-02-07 01:22:34 +00:00
|
|
|
dnspython
|
|
|
|
pathlib2
|
|
|
|
pyfakefs
|
|
|
|
python-dateutil
|
2022-08-12 12:06:08 +00:00
|
|
|
requests
|
2024-02-07 01:22:34 +00:00
|
|
|
urllib3
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
# Tests require networking
|
|
|
|
doCheck = false;
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "cryptolyzer" ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-17 10:02:37 +00:00
|
|
|
description = "Cryptographic protocol analyzer";
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://gitlab.com/coroner/cryptolyzer";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://gitlab.com/coroner/cryptolyzer/-/blob/v${version}/CHANGELOG.md";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ kranzes ];
|
|
|
|
};
|
|
|
|
}
|