1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 icalendar,
7 rich,
8 typer,
9 x-wr-timezone,
10 pytestCheckHook,
11 pytest-cov-stub,
12}:
13
14buildPythonPackage rec {
15 pname = "mergecal";
16 version = "0.5.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "mergecal";
21 repo = "python-mergecal";
22 tag = "v${version}";
23 hash = "sha256-Je3gFREu97Ycofszhr6pKOCiK76oBuzb3ji4LAf5aE8=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 icalendar
30 rich
31 typer
32 x-wr-timezone
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 pytest-cov-stub
38 ];
39
40 pythonImportsCheck = [ "mergecal" ];
41
42 meta = {
43 homepage = "https://mergecal.readthedocs.io/en/latest/";
44 changelog = "https://github.com/mergecal/python-mergecal/blob/${src.tag}/CHANGELOG.md";
45 license = lib.licenses.gpl3Only;
46 maintainers = with lib.maintainers; [ erictapen ];
47 };
48}