Merge pull request #120250 from fabaff/hdate

authored by

Martin Weinelt and committed by
GitHub
860b4575 eeece47a

+67 -1
+63
pkgs/development/python-modules/hdate/default.nix
···
··· 1 + { lib 2 + , astral 3 + , buildPythonPackage 4 + , fetchFromGitHub 5 + , fetchpatch 6 + , poetry-core 7 + , pytestCheckHook 8 + , pythonOlder 9 + , pytz 10 + }: 11 + 12 + buildPythonPackage rec { 13 + pname = "hdate"; 14 + version = "0.10.2"; 15 + disabled = pythonOlder "3.6"; 16 + format = "pyproject"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "py-libhdate"; 20 + repo = "py-libhdate"; 21 + rev = "v${version}"; 22 + sha256 = "07b0c7q8w6flj4q72v58d3wymsxfp5qz8z97qhhc2977mjx5fsxd"; 23 + }; 24 + 25 + nativeBuildInputs = [ 26 + poetry-core 27 + ]; 28 + 29 + propagatedBuildInputs = [ 30 + astral 31 + pytz 32 + ]; 33 + 34 + checkInputs = [ 35 + pytestCheckHook 36 + ]; 37 + 38 + patches = [ 39 + # Version was not updated for the release 40 + (fetchpatch { 41 + name = "update-version.patch"; 42 + url = "https://github.com/py-libhdate/py-libhdate/commit/b8186a891b29fed99def5ce0985ee0ae1e0dd77e.patch"; 43 + sha256 = "1pmhgh57x9390ff5gyisng0l6b79sd6dxmf172hpk1gr03c3hv98"; 44 + }) 45 + ]; 46 + 47 + postPatch = '' 48 + substituteInPlace pyproject.toml --replace "^2020.5" ">=2020.5" 49 + ''; 50 + 51 + pytestFlagsArray = [ 52 + "tests" 53 + ]; 54 + 55 + pythonImportsCheck = [ "hdate" ]; 56 + 57 + meta = with lib; { 58 + description = "Python module for Jewish/Hebrew date and Zmanim"; 59 + homepage = "https://github.com/py-libhdate/py-libhdate"; 60 + license = with licenses; [ gpl3Plus ]; 61 + maintainers = with maintainers; [ fab ]; 62 + }; 63 + }
+1 -1
pkgs/servers/home-assistant/component-packages.nix
··· 413 "itach" = ps: with ps; [ ]; # missing inputs: pyitachip2ir 414 "itunes" = ps: with ps; [ ]; 415 "izone" = ps: with ps; [ ]; # missing inputs: python-izone 416 - "jewish_calendar" = ps: with ps; [ ]; # missing inputs: hdate 417 "joaoapps_join" = ps: with ps; [ ]; # missing inputs: python-join-api 418 "juicenet" = ps: with ps; [ ]; # missing inputs: python-juicenet 419 "kaiterra" = ps: with ps; [ ]; # missing inputs: kaiterra-async-client
··· 413 "itach" = ps: with ps; [ ]; # missing inputs: pyitachip2ir 414 "itunes" = ps: with ps; [ ]; 415 "izone" = ps: with ps; [ ]; # missing inputs: python-izone 416 + "jewish_calendar" = ps: with ps; [ hdate ]; 417 "joaoapps_join" = ps: with ps; [ ]; # missing inputs: python-join-api 418 "juicenet" = ps: with ps; [ ]; # missing inputs: python-juicenet 419 "kaiterra" = ps: with ps; [ ]; # missing inputs: kaiterra-async-client
+1
pkgs/servers/home-assistant/default.nix
··· 272 "intent" 273 "intent_script" 274 "ipp" 275 "kmtronic" 276 "knx" 277 "kodi"
··· 272 "intent" 273 "intent_script" 274 "ipp" 275 + "jewish_calendar" 276 "kmtronic" 277 "knx" 278 "kodi"
+2
pkgs/top-level/python-packages.nix
··· 2985 2986 hachoir = callPackage ../development/python-modules/hachoir { }; 2987 2988 ha-ffmpeg = callPackage ../development/python-modules/ha-ffmpeg { }; 2989 2990 halo = callPackage ../development/python-modules/halo { };
··· 2985 2986 hachoir = callPackage ../development/python-modules/hachoir { }; 2987 2988 + hdate = callPackage ../development/python-modules/hdate { }; 2989 + 2990 ha-ffmpeg = callPackage ../development/python-modules/ha-ffmpeg { }; 2991 2992 halo = callPackage ../development/python-modules/halo { };