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