Files
phanirithvij 34b030e61c python3Packages.cryptodatahub: 1.0.2 -> 1.1.0
use finalAttrs
move to pytestCheckHook

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
2026-04-20 11:41:15 +02:00

71 lines
1.4 KiB
Nix

{
lib,
asn1crypto,
attrs,
beautifulsoup4,
buildPythonPackage,
fetchFromGitLab,
pyfakefs,
pytestCheckHook,
python-dateutil,
setuptools,
setuptools-scm,
urllib3,
}:
buildPythonPackage (finalAttrs: {
pname = "cryptodatahub";
version = "1.1.0";
pyproject = true;
src = fetchFromGitLab {
owner = "coroner";
repo = "cryptodatahub";
tag = "v${finalAttrs.version}";
hash = "sha256-Tz2VbWS5/sGjRsOKR7eWpWAJVNv1QMSjkepI7fVZq6w=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
asn1crypto
attrs
python-dateutil
urllib3
];
nativeCheckInputs = [
beautifulsoup4
pyfakefs
pytestCheckHook
];
pythonImportsCheck = [ "cryptodatahub" ];
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
"test/updaters/test_common.py"
# Tests require network access
"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/${finalAttrs.src.tag}/CHANGELOG.rst";
license = lib.licenses.mpl20;
teams = with lib.teams; [ ngi ];
};
})