2020-07-18 16:06:22 +00:00
|
|
|
{ lib
|
2021-05-20 23:08:51 +00:00
|
|
|
, pythonOlder
|
2020-07-18 16:06:22 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tls-parser";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "2.0.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nabla-c0d3";
|
|
|
|
repo = "tls_parser";
|
|
|
|
rev = version;
|
2022-03-30 09:31:56 +00:00
|
|
|
hash = "sha256-A1lYRe1sHDoOFdF20DP+xRMcPBWzokIXFphIpaBmwBc=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-03-30 09:31:56 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"tls_parser"
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Small library to parse TLS records";
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/nabla-c0d3/tls_parser";
|
2020-07-18 16:06:22 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ veehaitch ];
|
|
|
|
};
|
|
|
|
}
|