at 25.11-pre 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 jaraco-functools, 6 pytest-freezer, 7 pytestCheckHook, 8 python-dateutil, 9 pythonOlder, 10 setuptools-scm, 11}: 12 13buildPythonPackage rec { 14 pname = "tempora"; 15 version = "5.8.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "jaraco"; 22 repo = "tempora"; 23 tag = "v${version}"; 24 hash = "sha256-ojllPOmz+laxFMCobLcDnCVMvo1354vS5nBnO1mxokM="; 25 }; 26 27 build-system = [ setuptools-scm ]; 28 29 dependencies = [ 30 jaraco-functools 31 python-dateutil 32 ]; 33 34 nativeCheckInputs = [ 35 pytest-freezer 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "tempora" 41 "tempora.schedule" 42 "tempora.timing" 43 "tempora.utc" 44 ]; 45 46 meta = with lib; { 47 description = "Objects and routines pertaining to date and time"; 48 mainProgram = "calc-prorate"; 49 homepage = "https://github.com/jaraco/tempora"; 50 changelog = "https://github.com/jaraco/tempora/blob/${src.tag}/NEWS.rst"; 51 license = licenses.mit; 52 maintainers = [ ]; 53 }; 54}