5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
52 lines
1 KiB
Nix
52 lines
1 KiB
Nix
{
|
|
lib,
|
|
asn1crypto,
|
|
attrs,
|
|
buildPythonPackage,
|
|
cryptodatahub,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
pythonOlder,
|
|
setuptools,
|
|
unittestCheckHook,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cryptoparser";
|
|
version = "0.12.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-y5rpc0tn5JJQr4xdRUJbsq8XT/YqqJqZr3CXjqN7k7I=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace requirements.txt \
|
|
--replace-fail "attrs>=20.3.0,<22.0.1" "attrs>=20.3.0"
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
asn1crypto
|
|
attrs
|
|
cryptodatahub
|
|
python-dateutil
|
|
urllib3
|
|
];
|
|
|
|
pythonImportsCheck = [ "cryptoparser" ];
|
|
|
|
meta = with lib; {
|
|
description = "Security protocol parser and generator";
|
|
homepage = "https://gitlab.com/coroner/cryptoparser";
|
|
changelog = "https://gitlab.com/coroner/cryptoparser/-/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ kranzes ];
|
|
};
|
|
}
|