From a01da3a1aa65151d1df24ce46e81fc2cc6e9bea8 Mon Sep 17 00:00:00 2001 From: phanirithvij Date: Mon, 30 Mar 2026 14:08:03 +0530 Subject: [PATCH] python3Packages.cryptoparser: 1.0.2 -> 1.1.0 use finalAttrs move to pytestCheckHook Signed-off-by: phanirithvij --- .../python-modules/cryptoparser/default.nix | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/cryptoparser/default.nix b/pkgs/development/python-modules/cryptoparser/default.nix index 7cd535eea98f..6c814655ae8f 100644 --- a/pkgs/development/python-modules/cryptoparser/default.nix +++ b/pkgs/development/python-modules/cryptoparser/default.nix @@ -9,20 +9,20 @@ pyfakefs, setuptools, setuptools-scm, - unittestCheckHook, + pytestCheckHook, urllib3, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "cryptoparser"; - version = "1.0.2"; + version = "1.1.0"; pyproject = true; src = fetchFromGitLab { owner = "coroner"; repo = "cryptoparser"; - tag = "v${version}"; - hash = "sha256-CsG4hfA3pfE7FwxNfaUTLMS8RV0tv1czoHdIlolUX34="; + tag = "v${finalAttrs.version}"; + hash = "sha256-Zd305BFM3G8LMQqDwtbwRPy6ooNXJ61UzWBwVewh0F4="; }; patches = [ @@ -48,7 +48,12 @@ buildPythonPackage rec { nativeCheckInputs = [ pyfakefs - unittestCheckHook + pytestCheckHook + ]; + + disabledTests = [ + # pytest incorrectly collects abstract base classes + "TestCasesBasesHttpHeader" ]; postInstall = '' @@ -60,9 +65,8 @@ buildPythonPackage rec { meta = { description = "Security protocol parser and generator"; homepage = "https://gitlab.com/coroner/cryptoparser"; - changelog = "https://gitlab.com/coroner/cryptoparser/-/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://gitlab.com/coroner/cryptoparser/-/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mpl20; - maintainers = [ ]; teams = with lib.teams; [ ngi ]; }; -} +})