Merge pull request #160444 from fabaff/onvif
This commit is contained in:
commit
39b0c88620
4 changed files with 90 additions and 1 deletions
39
pkgs/development/python-modules/onvif-zeep-async/default.nix
Normal file
39
pkgs/development/python-modules/onvif-zeep-async/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
45
pkgs/development/python-modules/wsdiscovery/default.nix
Normal file
45
pkgs/development/python-modules/wsdiscovery/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -613,7 +613,7 @@
|
||||||
"ondilo_ico" = ps: with ps; [ aiohttp-cors ondilo ];
|
"ondilo_ico" = ps: with ps; [ aiohttp-cors ondilo ];
|
||||||
"onewire" = ps: with ps; [ pi1wire pyownet ];
|
"onewire" = ps: with ps; [ pi1wire pyownet ];
|
||||||
"onkyo" = ps: with ps; [ onkyo-eiscp ];
|
"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 ];
|
"open_meteo" = ps: with ps; [ open-meteo ];
|
||||||
"openalpr_cloud" = ps: with ps; [ ];
|
"openalpr_cloud" = ps: with ps; [ ];
|
||||||
"openalpr_local" = ps: with ps; [ ];
|
"openalpr_local" = ps: with ps; [ ];
|
||||||
|
@ -1388,6 +1388,7 @@
|
||||||
"oncue"
|
"oncue"
|
||||||
"ondilo_ico"
|
"ondilo_ico"
|
||||||
"onewire"
|
"onewire"
|
||||||
|
"onvif"
|
||||||
"open_meteo"
|
"open_meteo"
|
||||||
"openalpr_cloud"
|
"openalpr_cloud"
|
||||||
"openalpr_local"
|
"openalpr_local"
|
||||||
|
|
|
@ -5645,6 +5645,8 @@ in {
|
||||||
|
|
||||||
onnx = callPackage ../development/python-modules/onnx { };
|
onnx = callPackage ../development/python-modules/onnx { };
|
||||||
|
|
||||||
|
onvif-zeep-async = callPackage ../development/python-modules/onvif-zeep-async { };
|
||||||
|
|
||||||
oocsi = callPackage ../development/python-modules/oocsi { };
|
oocsi = callPackage ../development/python-modules/oocsi { };
|
||||||
|
|
||||||
open-garage = callPackage ../development/python-modules/open-garage { };
|
open-garage = callPackage ../development/python-modules/open-garage { };
|
||||||
|
@ -10567,6 +10569,8 @@ in {
|
||||||
|
|
||||||
ws4py = callPackage ../development/python-modules/ws4py { };
|
ws4py = callPackage ../development/python-modules/ws4py { };
|
||||||
|
|
||||||
|
wsdiscovery = callPackage ../development/python-modules/wsdiscovery { };
|
||||||
|
|
||||||
wsgi-intercept = callPackage ../development/python-modules/wsgi-intercept { };
|
wsgi-intercept = callPackage ../development/python-modules/wsgi-intercept { };
|
||||||
|
|
||||||
wsgiprox = callPackage ../development/python-modules/wsgiprox { };
|
wsgiprox = callPackage ../development/python-modules/wsgiprox { };
|
||||||
|
|
Loading…
Reference in a new issue