From 31bf0a4523132b5f55edb2cfb2a22237bdac3480 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Thu, 4 Aug 2022 20:58:06 +0300 Subject: [PATCH 1/2] python3Packages.cryptoparser: init at 0.8.0 --- .../python-modules/cryptoparser/default.nix | 34 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/cryptoparser/default.nix diff --git a/pkgs/development/python-modules/cryptoparser/default.nix b/pkgs/development/python-modules/cryptoparser/default.nix new file mode 100644 index 000000000000..cfac7f20376e --- /dev/null +++ b/pkgs/development/python-modules/cryptoparser/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, fetchPypi +, attrs +, six +, asn1crypto +, python-dateutil +}: + +buildPythonPackage rec { + pname = "cryptoparser"; + version = "0.8.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-kJg8d1PoGIC0feefbJM8oyXcRyMGdg1wWkQUl/nSNCo="; + }; + + propagatedBuildInputs = [ + attrs + six + asn1crypto + python-dateutil + ]; + + pythonImportsCheck = [ "cryptoparser" ]; + + meta = with lib; { + description = "Fast and flexible security protocol parser and generator"; + homepage = "https://gitlab.com/coroner/cryptoparser"; + license = licenses.mpl20; + maintainers = with maintainers; [ kranzes ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 850006795bca..c74039731bfb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2027,6 +2027,8 @@ in { inherit (pkgs.darwin.apple_sdk.frameworks) Security; }; + cryptoparser = callPackage ../development/python-modules/cryptoparser { }; + crytic-compile = callPackage ../development/python-modules/crytic-compile { }; csrmesh = callPackage ../development/python-modules/csrmesh { }; From 0081536ce57bbfc86462358b55bfbf4a27fbb4e9 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Thu, 4 Aug 2022 20:59:20 +0300 Subject: [PATCH 2/2] python3Packages.cryptolyzer: init at 0.8.1 --- .../python-modules/cryptolyzer/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/cryptolyzer/default.nix diff --git a/pkgs/development/python-modules/cryptolyzer/default.nix b/pkgs/development/python-modules/cryptolyzer/default.nix new file mode 100644 index 000000000000..2fd90b23bee0 --- /dev/null +++ b/pkgs/development/python-modules/cryptolyzer/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchPypi +, certvalidator +, attrs +, six +, urllib3 +, cryptoparser +, requests +}: + +buildPythonPackage rec { + pname = "cryptolyzer"; + version = "0.8.1"; + + src = fetchPypi { + pname = "CryptoLyzer"; + inherit version; + sha256 = "sha256-FbxSjKxhzlpj3IezuLCQvoeZMG1q+OE/yn5vB/XE1rI="; + }; + + propagatedBuildInputs = [ + certvalidator + attrs + six + urllib3 + cryptoparser + requests + ]; + + doCheck = false; # Tests require networking + + pythonImportsCheck = [ "cryptolyzer" ]; + + meta = with lib; { + description = "Fast and flexible cryptographic protocol analyzer"; + homepage = "https://gitlab.com/coroner/cryptolyzer"; + license = licenses.mpl20; + maintainers = with maintainers; [ kranzes ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c74039731bfb..06c4a1c08f8d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2027,6 +2027,8 @@ in { inherit (pkgs.darwin.apple_sdk.frameworks) Security; }; + cryptolyzer = callPackage ../development/python-modules/cryptolyzer { }; + cryptoparser = callPackage ../development/python-modules/cryptoparser { }; crytic-compile = callPackage ../development/python-modules/crytic-compile { };