1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5}: 6 7buildPythonPackage rec { 8 pname = "jdcal"; 9 version = "1.4"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "ea0a5067c5f0f50ad4c7bdc80abad3d976604f6fb026b0b3a17a9d84bb9046c9"; 14 }; 15 16 checkInputs = [ 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}