diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2021-06-16 12:49:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 12:49:56 +0200 |
commit | 8feaae5b602cc5727b1f1e2d4e7dc895d62f6347 (patch) | |
tree | 81d9caac708ede406944522f60b539843f2a2b0a /pkgs | |
parent | c6f6869e20b7f0fc9a30b587e20dac845ad7f518 (diff) | |
parent | e49a3615a9d32d619b3ef1ddb851f7d30f63c12e (diff) |
Merge pull request #126977 from dotlambda/blinkpy-init
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/blinkpy/default.nix | 48 | ||||
-rw-r--r-- | pkgs/servers/home-assistant/component-packages.nix | 2 | ||||
-rw-r--r-- | pkgs/servers/home-assistant/default.nix | 1 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
4 files changed, 52 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/blinkpy/default.nix b/pkgs/development/python-modules/blinkpy/default.nix new file mode 100644 index 0000000000000..a735148052491 --- /dev/null +++ b/pkgs/development/python-modules/blinkpy/default.nix @@ -0,0 +1,48 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, python-dateutil +, python-slugify +, requests +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "blinkpy"; + version = "0.17.1"; + + src = fetchFromGitHub { + owner = "fronzbot"; + repo = "blinkpy"; + rev = "v${version}"; + sha256 = "11h4r2vkrlxwjig1lay1n5wpny5isfgz85f7lsn8ndnqa2wpsymp"; + }; + + propagatedBuildInputs = [ + python-dateutil + python-slugify + requests + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "blinkpy" + "blinkpy.api" + "blinkpy.auth" + "blinkpy.blinkpy" + "blinkpy.camera" + "blinkpy.helpers.util" + "blinkpy.sync_module" + ]; + + meta = with lib; { + description = "Python library for the Blink Camera system"; + homepage = "https://github.com/fronzbot/blinkpy"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 04d3b5baa4c1f..a37dc141ff7ed 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -82,7 +82,7 @@ "bizkaibus" = ps: with ps; [ ]; # missing inputs: bizkaibus "blackbird" = ps: with ps; [ pyblackbird ]; "blebox" = ps: with ps; [ blebox-uniapi ]; - "blink" = ps: with ps; [ ]; # missing inputs: blinkpy + "blink" = ps: with ps; [ blinkpy ]; "blinksticklight" = ps: with ps; [ BlinkStick ]; "blinkt" = ps: with ps; [ ]; # missing inputs: blinkt "blockchain" = ps: with ps; [ ]; # missing inputs: python-blockchain-api diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index eb2fa70bbb92f..2f1c053ea26f2 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -308,6 +308,7 @@ in with py.pkgs; buildPythonApplication rec { "binary_sensor" "blackbird" "blebox" + "blink" "blueprint" "bluetooth_le_tracker" "bond" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 865c6aa8fcb3b..bb7acfc9abd63 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1109,6 +1109,8 @@ in { blinker = callPackage ../development/python-modules/blinker { }; + blinkpy = callPackage ../development/python-modules/blinkpy { }; + BlinkStick = callPackage ../development/python-modules/blinkstick { }; blis = callPackage ../development/python-modules/blis { }; |