1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, requests 7, vcrpy 8}: 9 10buildPythonPackage rec { 11 pname = "libpyvivotek"; 12 version = "0.4.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "HarlemSquirrel"; 19 repo = "python-vivotek"; 20 rev = "v${version}"; 21 sha256 = "pNlnGpDjdYE7Lxog8GGZV+UZZmfmt5bwHof5LngPQjg="; 22 }; 23 24 propagatedBuildInputs = [ 25 requests 26 ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 vcrpy 31 ]; 32 33 pythonImportsCheck = [ 34 "libpyvivotek" 35 ]; 36 37 meta = with lib; { 38 description = "Python Library for Vivotek IP Cameras"; 39 homepage = "https://github.com/HarlemSquirrel/python-vivotek"; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}