depot/third_party/nixpkgs/pkgs/development/python-modules/tls-parser/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

34 lines
742 B
Nix

{
lib,
pythonOlder,
fetchFromGitHub,
buildPythonPackage,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "tls-parser";
version = "2.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nabla-c0d3";
repo = "tls_parser";
rev = version;
hash = "sha256-2XHhUDiJ1EctnYdxYFbNSVLF8dmHP9cZXjziOE9+Dew=";
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "tls_parser" ];
meta = with lib; {
description = "Small library to parse TLS records";
homepage = "https://github.com/nabla-c0d3/tls_parser";
platforms = with platforms; linux ++ darwin;
license = licenses.mit;
maintainers = with maintainers; [ veehaitch ];
};
}