2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
asn1crypto,
|
|
|
|
attrs,
|
|
|
|
beautifulsoup4,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitLab,
|
|
|
|
pathlib2,
|
|
|
|
pyfakefs,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
six,
|
|
|
|
unittestCheckHook,
|
|
|
|
urllib3,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cryptodatahub";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.12.5";
|
2024-02-07 01:22:34 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "coroner";
|
|
|
|
repo = "cryptodatahub";
|
2024-02-07 01:22:34 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-jYMzvh4tgfLS7Za0MYHbWbczptAvENfzfTEV9Drlfto=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
2024-05-15 15:35:15 +00:00
|
|
|
--replace-fail "attrs>=20.3.0,<22.0.1" "attrs>=20.3.0"
|
2024-02-07 01:22:34 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2023-11-16 04:20:00 +00:00
|
|
|
asn1crypto
|
|
|
|
attrs
|
|
|
|
pathlib2
|
|
|
|
python-dateutil
|
|
|
|
six
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
pyfakefs
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "cryptodatahub" ];
|
2024-02-07 01:22:34 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
preCheck = ''
|
|
|
|
# failing tests
|
|
|
|
rm test/updaters/test_common.py
|
2024-09-19 14:19:46 +00:00
|
|
|
rm test/common/test_key.py
|
2024-02-07 01:22:34 +00:00
|
|
|
# Tests require network access
|
|
|
|
rm test/common/test_utils.py
|
2023-11-16 04:20:00 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Repository of cryptography-related data";
|
|
|
|
homepage = "https://gitlab.com/coroner/cryptodatahub";
|
2024-02-07 01:22:34 +00:00
|
|
|
changelog = "https://gitlab.com/coroner/cryptodatahub/-/blob/${version}/CHANGELOG.rst";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = licenses.mpl20;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
}
|