mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
40 lines
965 B
Nix
40 lines
965 B
Nix
{ buildPythonPackage
|
|
, fetchFromGitLab
|
|
, lib
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonAtLeast
|
|
, pythonOlder
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "vcard";
|
|
version = "0.15.4";
|
|
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" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|