1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5}:
6
7buildPythonPackage rec {
8 pname = "jdcal";
9 version = "1.4.1";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "472872e096eb8df219c23f2689fc336668bdb43d194094b5cc1707e1640acfc8";
14 };
15
16 nativeCheckInputs = [ pytest ];
17
18 checkPhase = ''
19 py.test
20 '';
21
22 meta = {
23 description = "A module containing functions for converting between Julian dates and calendar dates";
24 homepage = "https://github.com/phn/jdcal";
25 license = lib.licenses.bsd2;
26 maintainers = with lib.maintainers; [ lihop ];
27 };
28}