2020-05-21 10:25:12 +00:00
|
|
|
{ lib
|
2021-05-08 08:44:43 +00:00
|
|
|
, pythonOlder
|
2020-05-21 10:25:12 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tls-parser";
|
|
|
|
version = "1.2.2";
|
2021-05-08 08:44:43 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-05-21 10:25:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nabla-c0d3";
|
|
|
|
repo = "tls_parser";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "12qj3vg02r5a51w6gbgb1gcxicqc10lbbsdi57jkkfvbqiindbd0";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
2021-05-08 08:43:02 +00:00
|
|
|
pythonImportsCheck = [ "tls_parser" ];
|
|
|
|
|
2020-05-21 10:25:12 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/nabla-c0d3/tls_parser";
|
|
|
|
description = "Small library to parse TLS records";
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ veehaitch ];
|
|
|
|
};
|
|
|
|
}
|