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