2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
67 lines
1.1 KiB
Nix
67 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitLab
|
|
|
|
# build-system
|
|
, setuptools
|
|
|
|
# dependencies
|
|
, asn1crypto
|
|
, attrs
|
|
, pathlib2
|
|
, python-dateutil
|
|
, six
|
|
, urllib3
|
|
|
|
# tests
|
|
, beautifulsoup4
|
|
, pyfakefs
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cryptodatahub";
|
|
version = "0.10.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "coroner";
|
|
repo = "cryptodatahub";
|
|
rev = "v${version}";
|
|
hash = "sha256-eLdK5gFrLnbIBB1NTeQzpdCLPdATVjzPn5LhhUsDuwo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
asn1crypto
|
|
attrs
|
|
pathlib2
|
|
python-dateutil
|
|
six
|
|
urllib3
|
|
];
|
|
|
|
pythonImportsCheck = [ "cryptodatahub" ];
|
|
|
|
nativeCheckInputs = [
|
|
beautifulsoup4
|
|
pyfakefs
|
|
unittestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
# failing tests
|
|
rm test/updaters/test_common.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Repository of cryptography-related data";
|
|
homepage = "https://gitlab.com/coroner/cryptodatahub";
|
|
changelog = "https://gitlab.com/coroner/cryptodatahub/-/blob/${src.rev}/CHANGELOG.rst";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|