mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
32 lines
706 B
Nix
32 lines
706 B
Nix
{ lib
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tls-parser";
|
|
version = "1.2.2";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nabla-c0d3";
|
|
repo = "tls_parser";
|
|
rev = version;
|
|
sha256 = "12qj3vg02r5a51w6gbgb1gcxicqc10lbbsdi57jkkfvbqiindbd0";
|
|
};
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "tls_parser" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|