lol

Merge pull request #114181 from graham33/feature/add_ring_doorbell

Feature/add ring doorbell

authored by

Fabian Affolter and committed by
GitHub
b0146430 35648276

+52 -1
+44
pkgs/development/python-modules/ring-doorbell/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , isPy3k 5 + , oauthlib 6 + , pytestCheckHook 7 + , pytz 8 + , requests 9 + , requests-mock 10 + , requests_oauthlib 11 + }: 12 + 13 + buildPythonPackage rec { 14 + pname = "ring-doorbell"; 15 + version = "0.7.0"; 16 + disabled = !isPy3k; 17 + 18 + src = fetchPypi { 19 + pname = "ring_doorbell"; 20 + inherit version; 21 + sha256 = "1qnx9q9rzxhh0pygl3f9bg21b5zv7csv9h1w4zngdvsphbs0yiwg"; 22 + }; 23 + 24 + propagatedBuildInputs = [ 25 + oauthlib 26 + pytz 27 + requests 28 + requests_oauthlib 29 + ]; 30 + 31 + checkInputs = [ 32 + pytestCheckHook 33 + requests-mock 34 + ]; 35 + 36 + pythonImportsCheck = [ "ring_doorbell" ]; 37 + 38 + meta = with lib; { 39 + homepage = "https://github.com/tchellomello/python-ring-doorbell"; 40 + description = "A Python library to communicate with Ring Door Bell (https://ring.com/)"; 41 + license = licenses.lgpl3Plus; 42 + maintainers = with maintainers; [ graham33 ]; 43 + }; 44 + }
+1 -1
pkgs/servers/home-assistant/component-packages.nix
··· 679 679 "rest_command" = ps: with ps; [ ]; 680 680 "rflink" = ps: with ps; [ ]; # missing inputs: rflink 681 681 "rfxtrx" = ps: with ps; [ ]; # missing inputs: pyRFXtrx 682 - "ring" = ps: with ps; [ ha-ffmpeg ]; # missing inputs: ring_doorbell 682 + "ring" = ps: with ps; [ ha-ffmpeg ring-doorbell ]; 683 683 "ripple" = ps: with ps; [ ]; # missing inputs: python-ripple-api 684 684 "risco" = ps: with ps; [ pyrisco ]; 685 685 "rmvtransport" = ps: with ps; [ PyRMVtransport ];
+5
pkgs/servers/home-assistant/default.nix
··· 23 23 (mkOverride "astral" "1.10.1" 24 24 "d2a67243c4503131c856cafb1b1276de52a86e5b8a1d507b7e08bee51cb67bf1") 25 25 26 + # Pinned due to bug in ring-doorbell 0.7.0 27 + # https://github.com/tchellomello/python-ring-doorbell/issues/240 28 + (mkOverride "ring-doorbell" "0.6.2" 29 + "fbd537722a27b3b854c26506d894b7399bb8dc57ff36083285971227a2d46560") 30 + 26 31 # hass-frontend does not exist in python3.pkgs 27 32 (self: super: { 28 33 hass-frontend = self.callPackage ./frontend.nix { };
+2
pkgs/top-level/python-packages.nix
··· 6969 6969 6970 6970 rig = callPackage ../development/python-modules/rig { }; 6971 6971 6972 + ring-doorbell = callPackage ../development/python-modules/ring-doorbell { }; 6973 + 6972 6974 ripser = callPackage ../development/python-modules/ripser { }; 6973 6975 6974 6976 rising = callPackage ../development/python-modules/rising { };