From 34b030e61ca047d5b2641277ea4b58c49c6e3dc4 Mon Sep 17 00:00:00 2001 From: phanirithvij Date: Mon, 30 Mar 2026 13:28:43 +0530 Subject: [PATCH] python3Packages.cryptodatahub: 1.0.2 -> 1.1.0 use finalAttrs move to pytestCheckHook Signed-off-by: phanirithvij --- .../python-modules/cryptodatahub/default.nix | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/cryptodatahub/default.nix b/pkgs/development/python-modules/cryptodatahub/default.nix index c793dbd53b83..a07509e65f98 100644 --- a/pkgs/development/python-modules/cryptodatahub/default.nix +++ b/pkgs/development/python-modules/cryptodatahub/default.nix @@ -6,23 +6,23 @@ buildPythonPackage, fetchFromGitLab, pyfakefs, + pytestCheckHook, python-dateutil, setuptools, setuptools-scm, - unittestCheckHook, urllib3, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "cryptodatahub"; - version = "1.0.2"; + version = "1.1.0"; pyproject = true; src = fetchFromGitLab { owner = "coroner"; repo = "cryptodatahub"; - tag = "v${version}"; - hash = "sha256-DQspaa9GsnRjETKUca2i91iBPbT4qATmKiL8M0nBP/A="; + tag = "v${finalAttrs.version}"; + hash = "sha256-Tz2VbWS5/sGjRsOKR7eWpWAJVNv1QMSjkepI7fVZq6w="; }; build-system = [ @@ -40,23 +40,31 @@ buildPythonPackage rec { nativeCheckInputs = [ beautifulsoup4 pyfakefs - unittestCheckHook + pytestCheckHook ]; pythonImportsCheck = [ "cryptodatahub" ]; - preCheck = '' + disabledTests = [ + # fails due to certificate expiry + # see https://gitlab.com/coroner/cryptodatahub/-/work_items/38 + "test_validity" + # pytest incorrectly collects abstract base classes + "TestClasses" + ]; + + disabledTestPaths = [ # failing tests - rm test/updaters/test_common.py + "test/updaters/test_common.py" # Tests require network access - rm test/common/test_utils.py - ''; + "test/common/test_utils.py" + ]; meta = { description = "Repository of cryptography-related data"; homepage = "https://gitlab.com/coroner/cryptodatahub"; - changelog = "https://gitlab.com/coroner/cryptodatahub/-/blob/${src.tag}/CHANGELOG.rst"; + changelog = "https://gitlab.com/coroner/cryptodatahub/-/blob/${finalAttrs.src.tag}/CHANGELOG.rst"; license = lib.licenses.mpl20; teams = with lib.teams; [ ngi ]; }; -} +})