at 24.11-pre 1.2 kB view raw
1{ 2 lib, 3 astral, 4 buildPythonPackage, 5 fetchFromGitHub, 6 poetry-core, 7 pytestCheckHook, 8 pythonOlder, 9 pytz, 10}: 11 12buildPythonPackage rec { 13 pname = "hdate"; 14 version = "0.10.4"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "py-libhdate"; 21 repo = "py-libhdate"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-NF2ZA9ruW7sL2tLY11VAtyPRxGg2o5/mpv3ZsH/Zxb8="; 24 }; 25 26 postPatch = '' 27 substituteInPlace pyproject.toml \ 28 --replace 'pytz = ">= 2020.0"' 'pytz = "*"' \ 29 --replace 'astral = {version = "^2.2", python = "^3.6"}' 'astral = "*"' 30 ''; 31 32 nativeBuildInputs = [ poetry-core ]; 33 34 propagatedBuildInputs = [ 35 astral 36 pytz 37 ]; 38 39 nativeCheckInputs = [ pytestCheckHook ]; 40 41 pytestFlagsArray = [ "tests" ]; 42 43 pythonImportsCheck = [ "hdate" ]; 44 45 meta = with lib; { 46 description = "Python module for Jewish/Hebrew date and Zmanim"; 47 homepage = "https://github.com/py-libhdate/py-libhdate"; 48 changelog = "https://github.com/py-libhdate/py-libhdate/releases/tag/v${version}"; 49 license = with licenses; [ gpl3Plus ]; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}