Merge pull request #128653 from fabaff/hikvision

This commit is contained in:
Sandro 2021-06-30 00:24:45 +02:00 committed by GitHub
commit 33f2d30aba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 1 deletions

View file

@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "hikvision";
version = "2.0.4";
src = fetchFromGitHub {
owner = "fbradyirl";
repo = pname;
rev = "v${version}";
sha256 = "1l0zvir4hf1pcwwcmrhkspbdljzmi4lknxar5bkipdanpsm588mn";
};
propagatedBuildInputs = [
requests
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "hikvision.api" ];
meta = with lib; {
description = "Python module for interacting with Hikvision IP Cameras";
homepage = "https://github.com/fbradyirl/hikvision";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -347,7 +347,7 @@
"heos" = ps: with ps; [ pyheos ];
"here_travel_time" = ps: with ps; [ herepy ];
"hikvision" = ps: with ps; [ ]; # missing inputs: pyhik
"hikvisioncam" = ps: with ps; [ ]; # missing inputs: hikvision
"hikvisioncam" = ps: with ps; [ hikvision ];
"hisense_aehw4a1" = ps: with ps; [ pyaehw4a1 ];
"history" = ps: with ps; [ aiohttp-cors sqlalchemy ];
"history_stats" = ps: with ps; [ sqlalchemy ];

View file

@ -3260,6 +3260,8 @@ in {
hijri-converter = callPackage ../development/python-modules/hijri-converter { };
hikvision = callPackage ../development/python-modules/hikvision { };
hiredis = callPackage ../development/python-modules/hiredis { };
hiro = callPackage ../development/python-modules/hiro { };