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