2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, asn1crypto
|
|
|
|
, attrs
|
2024-02-07 01:22:34 +00:00
|
|
|
, beautifulsoup4
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitLab
|
2023-11-16 04:20:00 +00:00
|
|
|
, pathlib2
|
2024-02-07 01:22:34 +00:00
|
|
|
, pyfakefs
|
2023-11-16 04:20:00 +00:00
|
|
|
, python-dateutil
|
2024-02-07 01:22:34 +00:00
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2023-11-16 04:20:00 +00:00
|
|
|
, six
|
|
|
|
, unittestCheckHook
|
2024-02-07 01:22:34 +00:00
|
|
|
, urllib3
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cryptodatahub";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.12.4";
|
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-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-+IGzXYSaeZjN5AxBu7jXgrnGtrtaSveFiVeNQRBZMNg=";
|
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-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
2023-11-16 04:20:00 +00:00
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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-02-07 01:22:34 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"cryptodatahub"
|
|
|
|
];
|
|
|
|
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
preCheck = ''
|
|
|
|
# failing tests
|
|
|
|
rm test/updaters/test_common.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;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|