8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
37 lines
741 B
Nix
37 lines
741 B
Nix
{ lib
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tls-parser";
|
|
version = "2.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nabla-c0d3";
|
|
repo = "tls_parser";
|
|
rev = version;
|
|
hash = "sha256-A1lYRe1sHDoOFdF20DP+xRMcPBWzokIXFphIpaBmwBc=";
|
|
};
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|