Merge pull request #160444 from fabaff/onvif

This commit is contained in:
Martin Weinelt 2022-02-17 12:07:42 +01:00 committed by GitHub
commit 39b0c88620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 90 additions and 1 deletions

View File

@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchPypi
, httpx
, pythonOlder
, zeep
}:
buildPythonPackage rec {
pname = "onvif-zeep-async";
version = "1.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-O4H6oL9cFvgX6whoESA7eRI6+VoT1ncRk/tehQT1WcM=";
};
propagatedBuildInputs = [
httpx
zeep
];
pythonImportsCheck = [
"onvif"
];
# Tests are not shipped
doCheck = false;
meta = with lib; {
description = "ONVIF Client Implementation in Python";
homepage = "https://github.com/hunterjm/python-onvif-zeep-async";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, click
, fetchFromGitHub
, mock
, netifaces
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "wsdiscovery";
version = "2.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "andreikop";
repo = "python-ws-discovery";
rev = version;
hash = "sha256-6LGZogNRCnmCrRXvHq9jmHwqW13KQPpaGaao/52JPtk=";
};
propagatedBuildInputs = [
click
netifaces
];
checkInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [
"wsdiscovery"
];
meta = with lib; {
description = "WS-Discovery implementation for Python";
homepage = "https://github.com/andreikop/python-ws-discovery";
license = with licenses; [ lgpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -613,7 +613,7 @@
"ondilo_ico" = ps: with ps; [ aiohttp-cors ondilo ];
"onewire" = ps: with ps; [ pi1wire pyownet ];
"onkyo" = ps: with ps; [ onkyo-eiscp ];
"onvif" = ps: with ps; [ ha-ffmpeg ]; # missing inputs: WSDiscovery onvif-zeep-async
"onvif" = ps: with ps; [ wsdiscovery ha-ffmpeg onvif-zeep-async ];
"open_meteo" = ps: with ps; [ open-meteo ];
"openalpr_cloud" = ps: with ps; [ ];
"openalpr_local" = ps: with ps; [ ];
@ -1388,6 +1388,7 @@
"oncue"
"ondilo_ico"
"onewire"
"onvif"
"open_meteo"
"openalpr_cloud"
"openalpr_local"

View File

@ -5645,6 +5645,8 @@ in {
onnx = callPackage ../development/python-modules/onnx { };
onvif-zeep-async = callPackage ../development/python-modules/onvif-zeep-async { };
oocsi = callPackage ../development/python-modules/oocsi { };
open-garage = callPackage ../development/python-modules/open-garage { };
@ -10567,6 +10569,8 @@ in {
ws4py = callPackage ../development/python-modules/ws4py { };
wsdiscovery = callPackage ../development/python-modules/wsdiscovery { };
wsgi-intercept = callPackage ../development/python-modules/wsgi-intercept { };
wsgiprox = callPackage ../development/python-modules/wsgiprox { };