depot/third_party/nixpkgs/pkgs/development/python-modules/vcard/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

47 lines
1 KiB
Nix

{
buildPythonPackage,
fetchFromGitLab,
lib,
nix-update-script,
pytestCheckHook,
python-dateutil,
pythonAtLeast,
pythonOlder,
}:
let
version = "0.15.4";
in
buildPythonPackage {
inherit version;
pname = "vcard";
format = "setuptools";
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" ];
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://gitlab.com/engmark/vcard";
description = "vCard validator, class and utility functions";
longDescription = ''
This program can be used for strict validation and parsing of vCards. It currently supports vCard 3.0 (RFC 2426).
'';
license = lib.licenses.agpl3Plus;
mainProgram = "vcard";
maintainers = [ lib.maintainers.l0b0 ];
};
}