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