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