1{ lib
2, pythonOlder
3, fetchFromGitHub
4, buildPythonPackage
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "tls-parser";
10 version = "2.0.1";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "nabla-c0d3";
17 repo = "tls_parser";
18 rev = version;
19 hash = "sha256-2XHhUDiJ1EctnYdxYFbNSVLF8dmHP9cZXjziOE9+Dew=";
20 };
21
22 nativeCheckInputs = [
23 pytestCheckHook
24 ];
25
26 pythonImportsCheck = [
27 "tls_parser"
28 ];
29
30 meta = with lib; {
31 description = "Small library to parse TLS records";
32 homepage = "https://github.com/nabla-c0d3/tls_parser";
33 platforms = with platforms; linux ++ darwin;
34 license = licenses.mit;
35 maintainers = with maintainers; [ veehaitch ];
36 };
37}