Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 pythonOlder, 4 fetchFromGitHub, 5 buildPythonPackage, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "tls-parser"; 11 version = "2.0.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "nabla-c0d3"; 18 repo = "tls_parser"; 19 rev = version; 20 hash = "sha256-2XHhUDiJ1EctnYdxYFbNSVLF8dmHP9cZXjziOE9+Dew="; 21 }; 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 platforms = with platforms; linux ++ darwin; 31 license = licenses.mit; 32 maintainers = with maintainers; [ veehaitch ]; 33 }; 34}