2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-11-16 04:20:00 +00:00
|
|
|
, setuptools
|
2022-08-12 12:06:08 +00:00
|
|
|
, attrs
|
|
|
|
, asn1crypto
|
2023-11-16 04:20:00 +00:00
|
|
|
, cryptodatahub
|
2022-08-12 12:06:08 +00:00
|
|
|
, python-dateutil
|
2023-11-16 04:20:00 +00:00
|
|
|
, urllib3
|
|
|
|
, pytestCheckHook
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cryptoparser";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.12.2";
|
|
|
|
pyproject = true;
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-11-16 04:20:00 +00:00
|
|
|
pname = "CryptoParser";
|
|
|
|
inherit version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-SG7I/uOWZapjZ5zGW1HndGqaYc2k2aRWf3IWlartIJE=";
|
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"
|
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
asn1crypto
|
2023-11-16 04:20:00 +00:00
|
|
|
attrs
|
|
|
|
cryptodatahub
|
2022-08-12 12:06:08 +00:00
|
|
|
python-dateutil
|
2023-11-16 04:20:00 +00:00
|
|
|
urllib3
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"cryptoparser"
|
|
|
|
];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-17 10:02:37 +00:00
|
|
|
description = "Security protocol parser and generator";
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://gitlab.com/coroner/cryptoparser";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://gitlab.com/coroner/cryptoparser/-/blob/v${version}/CHANGELOG.md";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ kranzes ];
|
|
|
|
};
|
|
|
|
}
|