1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 isPyPy,
6 setuptools,
7 python-dateutil,
8 pytz,
9 six,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "vobject";
15 version = "0.9.9";
16 pyproject = true;
17
18 disabled = isPyPy;
19
20 src = fetchFromGitHub {
21 owner = "py-vobject";
22 repo = "vobject";
23 tag = "v${version}";
24 hash = "sha256-OL0agVpV/kWph6KhpzDhfzayscs0OaJ2W9WIilXVaS0=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 python-dateutil
31 pytz
32 six
33 ];
34
35 pythonImportsCheck = [ "vobject" ];
36
37 nativeCheckInputs = [ pytestCheckHook ];
38
39 enabledTestPaths = [ "tests.py" ];
40
41 meta = with lib; {
42 description = "Module for reading vCard and vCalendar files";
43 homepage = "https://github.com/py-vobject/vobject";
44 license = licenses.asl20;
45 maintainers = [ ];
46 };
47}