Merge pull request #127580 from dotlambda/herepy-init
This commit is contained in:
commit
88782d1606
40
pkgs/development/python-modules/herepy/default.nix
Normal file
40
pkgs/development/python-modules/herepy/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, requests
|
||||
, pytestCheckHook
|
||||
, responses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "herepy";
|
||||
version = "3.5.2";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "abdullahselek";
|
||||
repo = "HerePy";
|
||||
rev = version;
|
||||
sha256 = "0z1brgnrzdzfmnydipja4hhrhnz4fwdjy3xa05mz28bwi6z52bcj";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
responses
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "herepy" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library that provides a Python interface to the HERE APIs";
|
||||
homepage = "https://github.com/abdullahselek/HerePy";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
|
@ -345,7 +345,7 @@
|
|||
"hdmi_cec" = ps: with ps; [ pycec ];
|
||||
"heatmiser" = ps: with ps; [ ]; # missing inputs: heatmiserV3
|
||||
"heos" = ps: with ps; [ pyheos ];
|
||||
"here_travel_time" = ps: with ps; [ ]; # missing inputs: herepy
|
||||
"here_travel_time" = ps: with ps; [ herepy ];
|
||||
"hikvision" = ps: with ps; [ ]; # missing inputs: pyhik
|
||||
"hikvisioncam" = ps: with ps; [ ]; # missing inputs: hikvision
|
||||
"hisense_aehw4a1" = ps: with ps; [ ]; # missing inputs: pyaehw4a1
|
||||
|
|
|
@ -441,6 +441,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"hassio"
|
||||
"hddtemp"
|
||||
"heos"
|
||||
"here_travel_time"
|
||||
"history"
|
||||
"history_stats"
|
||||
"hive"
|
||||
|
@ -743,6 +744,8 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"--only-rerun RuntimeError"
|
||||
# enable full variable printing on error
|
||||
"--showlocals"
|
||||
# here_travel_time/test_sensor.py: Tries to access HERE API: herepy.error.HEREError: Error occured on __get
|
||||
"--deselect tests/components/here_travel_time/test_sensor.py::test_invalid_credentials"
|
||||
# screenlogic/test_config_flow.py: Tries to send out UDP broadcasts
|
||||
"--deselect tests/components/screenlogic/test_config_flow.py::test_form_cannot_connect"
|
||||
# asuswrt/test_config_flow.py: Sandbox network limitations, fails with unexpected error
|
||||
|
|
|
@ -3214,6 +3214,8 @@ in {
|
|||
inherit python;
|
||||
});
|
||||
|
||||
herepy = callPackage ../development/python-modules/herepy { };
|
||||
|
||||
hetzner = callPackage ../development/python-modules/hetzner { };
|
||||
|
||||
heudiconv = callPackage ../development/python-modules/heudiconv { };
|
||||
|
|
Loading…
Reference in a new issue