at master 1.1 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.1"; 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-1Zeo8bUCHKPZ6I0HGT7bIh7IgbRL4j9Cv3t9FFiZ72s="; 25 }; 26 27 postPatch = '' 28 sed -i "/coherent\.licensed/d" pyproject.toml 29 ''; 30 31 build-system = [ setuptools-scm ]; 32 33 dependencies = [ 34 jaraco-functools 35 python-dateutil 36 ]; 37 38 nativeCheckInputs = [ 39 pytest-freezer 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ 44 "tempora" 45 "tempora.schedule" 46 "tempora.timing" 47 "tempora.utc" 48 ]; 49 50 meta = with lib; { 51 description = "Objects and routines pertaining to date and time"; 52 mainProgram = "calc-prorate"; 53 homepage = "https://github.com/jaraco/tempora"; 54 changelog = "https://github.com/jaraco/tempora/blob/${src.tag}/NEWS.rst"; 55 license = licenses.mit; 56 maintainers = [ ]; 57 }; 58}