mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
6b8de6bf3c
Referencing it is not necessary any more, since using pythonRelaxDeps or pythonRemoveDeps will automatically make sure the hook is provided.
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitLab,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
pythonAtLeast,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "vcard";
|
|
version = "0.16.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8" || pythonAtLeast "3.12";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "engmark";
|
|
repo = "vcard";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-cz1WF8LQsyJwcVKMSWmFb6OB/JWyfc2FgcOT3jJ45Cg=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "python-dateutil" ];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ python-dateutil ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "vcard" ];
|
|
|
|
meta = {
|
|
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).
|
|
'';
|
|
homepage = "https://gitlab.com/engmark/vcard";
|
|
license = lib.licenses.agpl3Plus;
|
|
mainProgram = "vcard";
|
|
maintainers = with lib.maintainers; [ l0b0 ];
|
|
};
|
|
}
|