1{ lib
2, isPy27
3, fetchFromGitHub
4, buildPythonPackage
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "tls-parser";
10 version = "1.2.2";
11 disabled = isPy27;
12
13 src = fetchFromGitHub {
14 owner = "nabla-c0d3";
15 repo = "tls_parser";
16 rev = version;
17 sha256 = "12qj3vg02r5a51w6gbgb1gcxicqc10lbbsdi57jkkfvbqiindbd0";
18 };
19
20 checkInputs = [ pytestCheckHook ];
21
22 meta = with lib; {
23 homepage = "https://github.com/nabla-c0d3/tls_parser";
24 description = "Small library to parse TLS records";
25 platforms = with platforms; linux ++ darwin;
26 license = licenses.mit;
27 maintainers = with maintainers; [ veehaitch ];
28 };
29}