depot/third_party/nixpkgs/pkgs/development/python-modules/cryptolyzer/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

70 lines
1.3 KiB
Nix

{ lib
, attrs
, beautifulsoup4
, buildPythonPackage
, certvalidator
, colorama
, cryptoparser
, dnspython
, fetchPypi
, pathlib2
, pyfakefs
, python-dateutil
, pythonOlder
, requests
, setuptools
, urllib3
}:
buildPythonPackage rec {
pname = "cryptolyzer";
version = "0.12.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "CryptoLyzer";
inherit version;
hash = "sha256-UffFdQ+MiB8kPzqnmWdnGRwAAM9wJwpUDK2bPvPvH0c=";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace-warn "attrs>=20.3.0,<22.0.1" "attrs>=20.3.0" \
--replace-warn "bs4" "beautifulsoup4"
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
attrs
beautifulsoup4
certvalidator
colorama
cryptoparser
dnspython
pathlib2
pyfakefs
python-dateutil
requests
urllib3
];
# Tests require networking
doCheck = false;
pythonImportsCheck = [
"cryptolyzer"
];
meta = with lib; {
description = "Cryptographic protocol analyzer";
homepage = "https://gitlab.com/coroner/cryptolyzer";
changelog = "https://gitlab.com/coroner/cryptolyzer/-/blob/v${version}/CHANGELOG.md";
license = licenses.mpl20;
maintainers = with maintainers; [ kranzes ];
};
}