blob: 9a3043affca1bf122862a3b90bd2ae12f2c882d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
backports-zoneinfo,
python-dateutil,
pytz,
hypothesis,
pytestCheckHook,
}:
buildPythonPackage rec {
version = "5.0.12";
pname = "icalendar";
pyproject = true;
src = fetchFromGitHub {
owner = "collective";
repo = "icalendar";
rev = "refs/tags/v${version}";
hash = "sha256-313NcknY2zad4lI+/P0szDVjEQ8VatnSiBiaG/Ta1Bw=";
};
build-system = [ setuptools ];
dependencies = [
python-dateutil
pytz
] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
pytestFlagsArray = [ "src/icalendar" ];
meta = with lib; {
changelog = "https://github.com/collective/icalendar/blob/v${version}/CHANGES.rst";
description = "Parser/generator of iCalendar files";
mainProgram = "icalendar";
homepage = "https://github.com/collective/icalendar";
license = licenses.bsd2;
maintainers = with maintainers; [ olcai ];
};
}
|