about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cryptodatahub/default.nix
blob: 7345692977969017479552a9eb93d60d3fecbe2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{ 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; [ ];
  };
}