Merge pull request #146796 from fabaff/libpyvivotek

python3Packages.libpyvivotek: init at 0.4.0
This commit is contained in:
Fabian Affolter
2021-11-22 09:43:21 +01:00
committed by GitHub
3 changed files with 46 additions and 1 deletions
@@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
, vcrpy
}:
buildPythonPackage rec {
pname = "libpyvivotek";
version = "0.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "HarlemSquirrel";
repo = "python-vivotek";
rev = "v${version}";
sha256 = "pNlnGpDjdYE7Lxog8GGZV+UZZmfmt5bwHof5LngPQjg=";
};
propagatedBuildInputs = [
requests
];
checkInputs = [
pytestCheckHook
vcrpy
];
pythonImportsCheck = [
"libpyvivotek"
];
meta = with lib; {
description = "Python Library for Vivotek IP Cameras";
homepage = "https://github.com/HarlemSquirrel/python-vivotek";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}
@@ -942,7 +942,7 @@
"viaggiatreno" = ps: with ps; [ ];
"vicare" = ps: with ps; [ pyvicare ];
"vilfo" = ps: with ps; [ vilfo-api-client ];
"vivotek" = ps: with ps; [ ]; # missing inputs: libpyvivotek
"vivotek" = ps: with ps; [ libpyvivotek ];
"vizio" = ps: with ps; [ pyvizio ];
"vlc" = ps: with ps; [ python-vlc ];
"vlc_telnet" = ps: with ps; [ aiovlc ];
+2
View File
@@ -4366,6 +4366,8 @@ in {
libpyfoscam = callPackage ../development/python-modules/libpyfoscam { };
libpyvivotek = callPackage ../development/python-modules/libpyvivotek { };
libredwg = toPythonModule (pkgs.libredwg.override {
enablePython = true;
inherit (self) python libxml2;