aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/tls-parser/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/tls-parser/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/tls-parser/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/tls-parser/default.nix b/nixpkgs/pkgs/development/python-modules/tls-parser/default.nix
new file mode 100644
index 00000000000..5b6bfe6a0e2
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/tls-parser/default.nix
@@ -0,0 +1,29 @@
+{ lib
+, isPy27
+, fetchFromGitHub
+, buildPythonPackage
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+ pname = "tls-parser";
+ version = "1.2.2";
+ disabled = isPy27;
+
+ src = fetchFromGitHub {
+ owner = "nabla-c0d3";
+ repo = "tls_parser";
+ rev = version;
+ sha256 = "12qj3vg02r5a51w6gbgb1gcxicqc10lbbsdi57jkkfvbqiindbd0";
+ };
+
+ checkInputs = [ pytestCheckHook ];
+
+ 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 ];
+ };
+}