2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitLab,
|
|
|
|
lib,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
pythonAtLeast,
|
|
|
|
pythonOlder,
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vcard";
|
|
|
|
version = "0.15.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
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";
|
2023-08-22 20:05:09 +00:00
|
|
|
longDescription = ''
|
|
|
|
This program can be used for strict validation and parsing of vCards. It currently supports vCard 3.0 (RFC 2426).
|
|
|
|
'';
|
2023-08-04 22:07:22 +00:00
|
|
|
license = lib.licenses.agpl3Plus;
|
2023-08-22 20:05:09 +00:00
|
|
|
mainProgram = "vcard";
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = [ lib.maintainers.l0b0 ];
|
|
|
|
};
|
|
|
|
}
|