1{ lib 2, buildPythonPackage 3, fetchFromGitLab 4 5# build-system 6, setuptools 7 8# dependencies 9, asn1crypto 10, attrs 11, pathlib2 12, python-dateutil 13, six 14, urllib3 15 16# tests 17, beautifulsoup4 18, pyfakefs 19, unittestCheckHook 20}: 21 22buildPythonPackage rec { 23 pname = "cryptodatahub"; 24 version = "0.10.1"; 25 format = "pyproject"; 26 27 src = fetchFromGitLab { 28 owner = "coroner"; 29 repo = "cryptodatahub"; 30 rev = "v${version}"; 31 hash = "sha256-eLdK5gFrLnbIBB1NTeQzpdCLPdATVjzPn5LhhUsDuwo="; 32 }; 33 34 nativeBuildInputs = [ 35 setuptools 36 ]; 37 38 propagatedBuildInputs = [ 39 asn1crypto 40 attrs 41 pathlib2 42 python-dateutil 43 six 44 urllib3 45 ]; 46 47 pythonImportsCheck = [ "cryptodatahub" ]; 48 49 nativeCheckInputs = [ 50 beautifulsoup4 51 pyfakefs 52 unittestCheckHook 53 ]; 54 55 preCheck = '' 56 # failing tests 57 rm test/updaters/test_common.py 58 ''; 59 60 meta = with lib; { 61 description = "Repository of cryptography-related data"; 62 homepage = "https://gitlab.com/coroner/cryptodatahub"; 63 changelog = "https://gitlab.com/coroner/cryptodatahub/-/blob/${src.rev}/CHANGELOG.rst"; 64 license = licenses.mpl20; 65 maintainers = with maintainers; [ ]; 66 }; 67}