Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 28 lines 570 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5}: 6 7buildPythonPackage rec { 8 pname = "jdcal"; 9 version = "1.3"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "b760160f8dc8cc51d17875c6b663fafe64be699e10ce34b6a95184b5aa0fdc9e"; 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}