1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, requests 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "hikvision"; 10 version = "2.0.4"; 11 12 src = fetchFromGitHub { 13 owner = "fbradyirl"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "1l0zvir4hf1pcwwcmrhkspbdljzmi4lknxar5bkipdanpsm588mn"; 17 }; 18 19 propagatedBuildInputs = [ 20 requests 21 ]; 22 23 checkInputs = [ 24 pytestCheckHook 25 ]; 26 27 pythonImportsCheck = [ "hikvision.api" ]; 28 29 meta = with lib; { 30 description = "Python module for interacting with Hikvision IP Cameras"; 31 homepage = "https://github.com/fbradyirl/hikvision"; 32 license = with licenses; [ mit ]; 33 maintainers = with maintainers; [ fab ]; 34 }; 35}