python3Packages.cryptodatahub: 1.0.2 -> 1.1.0
use finalAttrs move to pytestCheckHook Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
committed by
Weijia Wang
parent
f5aa12eb14
commit
34b030e61c
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user