1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pymeeus
5, pytz
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "convertdate";
11 version = "2.2.2";
12
13 # Tests are not available in the PyPI tarball so use GitHub instead.
14 src = fetchFromGitHub {
15 owner = "fitnr";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "07x1j6jgkmrzdpv2lhpp4n16621mpmlylvwdwsggdjivhzvc3x9q";
19 };
20
21 propagatedBuildInputs = [
22 pymeeus
23 pytz
24 ];
25
26 checkInputs = [
27 pytestCheckHook
28 ];
29
30 meta = with lib; {
31 homepage = "https://github.com/fitnr/convertdate";
32 description = "Utils for converting between date formats and calculating holidays";
33 license = licenses.mit;
34 maintainers = with maintainers; [ jluttine ];
35 };
36}