python3Packages.hikvision: init at 2.0.4
This commit is contained in:
parent
ee8a5b4b03
commit
4eace804a5
35
pkgs/development/python-modules/hikvision/default.nix
Normal file
35
pkgs/development/python-modules/hikvision/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user