push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,81 @@
{
lib,
attrs,
beautifulsoup4,
buildPythonPackage,
certvalidator,
colorama,
cryptoparser,
dnspython,
fetchPypi,
pathlib2,
pyfakefs,
python-dateutil,
pythonOlder,
requests,
setuptools,
setuptools-scm,
urllib3,
}:
buildPythonPackage rec {
pname = "cryptolyzer";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-rRiRaXONLMNirKsK+QZWMSvaGeSLrHN9BpM8dhxoaxY=";
};
patches = [
# https://gitlab.com/coroner/cryptolyzer/-/merge_requests/4
./fix-dirs-exclude.patch
];
pythonRemoveDeps = [ "bs4" ];
build-system = [
setuptools
setuptools-scm
];
dependencies = [
attrs
beautifulsoup4
certvalidator
colorama
cryptoparser
dnspython
pathlib2
pyfakefs
python-dateutil
requests
urllib3
];
# Tests require networking
doCheck = false;
postInstall = ''
find $out -name "__pycache__" -type d | xargs rm -rv
# Prevent creating more binary byte code later (e.g. during
# pythonImportsCheck)
export PYTHONDONTWRITEBYTECODE=1
'';
pythonImportsCheck = [ "cryptolyzer" ];
meta = {
description = "Cryptographic protocol analyzer";
homepage = "https://gitlab.com/coroner/cryptolyzer";
changelog = "https://gitlab.com/coroner/cryptolyzer/-/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mpl20;
mainProgram = "cryptolyze";
maintainers = with lib.maintainers; [ kranzes ];
teams = with lib.teams; [ ngi ];
};
}

View File

@@ -0,0 +1,27 @@
From 5ba89bc0bcc23fc7e8cd3eefb2d78b5a63f4fc66 Mon Sep 17 00:00:00 2001
From: Ivan Mincik <ivan.mincik@gmail.com>
Date: Wed, 17 Sep 2025 14:44:15 +0200
Subject: [PATCH] Fix directories exclude from package
* correctly exclude submodules directory
* also exclude docs directory
---
pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
index 96a0fa89..a26ee257 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -106,7 +106,7 @@ technical_name = 'cryptolyzer'
license-files = ['LICENSE.txt']
[tool.setuptools.packages.find]
-exclude = ['submodules']
+exclude = ['submodules*', 'docs']
[tool.tox]
envlist = [
--
GitLab