nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitLab,
5 pytestCheckHook,
6 python-dateutil,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "vcard";
12 version = "1.0.0";
13 pyproject = true;
14
15 src = fetchFromGitLab {
16 owner = "engmark";
17 repo = "vcard";
18 tag = "v${version}";
19 hash = "sha256-c6lj4sCXlQd5Bh5RLuZUIaTirVHtkRfYUAUtZI+1MeI=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ python-dateutil ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "vcard" ];
29
30 meta = {
31 description = "vCard validator, class and utility functions";
32 longDescription = ''
33 This program can be used for strict validation and parsing of vCards. It currently supports vCard 3.0 (RFC 2426).
34 '';
35 homepage = "https://gitlab.com/engmark/vcard";
36 license = lib.licenses.agpl3Plus;
37 mainProgram = "vcard";
38 maintainers = with lib.maintainers; [ l0b0 ];
39 };
40}