1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitLab,
5 pytestCheckHook,
6 python-dateutil,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "vcard";
13 version = "1.0.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitLab {
19 owner = "engmark";
20 repo = "vcard";
21 tag = "v${version}";
22 hash = "sha256-c6lj4sCXlQd5Bh5RLuZUIaTirVHtkRfYUAUtZI+1MeI=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ python-dateutil ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "vcard" ];
32
33 meta = {
34 description = "vCard validator, class and utility functions";
35 longDescription = ''
36 This program can be used for strict validation and parsing of vCards. It currently supports vCard 3.0 (RFC 2426).
37 '';
38 homepage = "https://gitlab.com/engmark/vcard";
39 license = lib.licenses.agpl3Plus;
40 mainProgram = "vcard";
41 maintainers = with lib.maintainers; [ l0b0 ];
42 };
43}