python3Packages.hikvision: init at 2.0.4

This commit is contained in:
Fabian Affolter 2021-06-29 20:45:39 +02:00
parent ee8a5b4b03
commit 4eace804a5
2 changed files with 37 additions and 0 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

@ -3246,6 +3246,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 { };