1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pymeeus
5, pytz
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "convertdate";
12 version = "2.4.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "fitnr";
19 repo = pname;
20 rev = "v${version}";
21 hash = "sha256-iOHK3UJulXJJR50nhiVgfk3bt+CAtG3BRySJ8DkBuJE=";
22 };
23
24 propagatedBuildInputs = [
25 pymeeus
26 pytz
27 ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [
34 "convertdate"
35 ];
36
37 meta = with lib; {
38 description = "Utils for converting between date formats and calculating holidays";
39 homepage = "https://github.com/fitnr/convertdate";
40 license = licenses.mit;
41 maintainers = with maintainers; [ jluttine ];
42 };
43}