1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "juliandate"; 11 version = "1.0.5"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "seanredmond"; 16 repo = "juliandate"; 17 tag = "v${version}"; 18 hash = "sha256-pOWyrPBFqKmG9oKbXY/L14LblIcc8KfZSqZAEQP29V8="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "juliandate" ]; 26 27 meta = { 28 description = "Conversions between Julian Dates and Julian/Gregorian calendar dates"; 29 homepage = "https://github.com/seanredmond/juliandate"; 30 changelog = "https://github.com/seanredmond/juliandate/blob/v${src.tag}/HISTORY.MD"; 31 license = lib.licenses.gpl3Only; 32 maintainers = with lib.maintainers; [ fab ]; 33 }; 34}