1{ lib
2, pythonOlder
3, fetchFromGitHub
4, buildPythonPackage
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "tls-parser";
10 version = "1.2.2";
11 disabled = pythonOlder "3.7";
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 pythonImportsCheck = [ "tls_parser" ];
23
24 meta = with lib; {
25 homepage = "https://github.com/nabla-c0d3/tls_parser";
26 description = "Small library to parse TLS records";
27 platforms = with platforms; linux ++ darwin;
28 license = licenses.mit;
29 maintainers = with maintainers; [ veehaitch ];
30 };
31}