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