about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/vcard/default.nix
blob: 5e83f498722b25671da44b85c0a39678a99b39bd (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
{ buildPythonPackage
, fetchFromGitLab
, lib
, pytestCheckHook
, python-dateutil
, pythonAtLeast
, pythonOlder
}:
buildPythonPackage rec {
  pname = "vcard";
  version = "0.15.4";

  disabled = pythonOlder "3.8" || pythonAtLeast "3.12";

  src = fetchFromGitLab {
    owner = "engmark";
    repo = "vcard";
    rev = "refs/tags/v${version}";
    hash = "sha256-7GNq6PoWZgwhhpxhWOkUEpqckeSfzocex1ZGN9CTJyo=";
  };

  propagatedBuildInputs = [ python-dateutil ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "vcard" ];

  meta = {
    homepage = "https://gitlab.com/engmark/vcard";
    description = "vCard validator, class and utility functions";
    longDescription = ''
      This program can be used for strict validation and parsing of vCards. It currently supports vCard 3.0 (RFC 2426).
    '';
    license = lib.licenses.agpl3Plus;
    mainProgram = "vcard";
    maintainers = [ lib.maintainers.l0b0 ];
  };
}