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