1{ lib 2, buildPythonPackage 3, fetchFromGitLab 4, requests 5, pytestCheckHook 6, requests-mock 7}: 8 9buildPythonPackage rec { 10 pname = "doorbirdpy"; 11 version = "2.2.2"; 12 format = "setuptools"; 13 14 src = fetchFromGitLab { 15 owner = "klikini"; 16 repo = "doorbirdpy"; 17 rev = version; 18 hash = "sha256-pgL4JegD1gANefp7jLYb74N9wgpkDgQc/Fe+NyLBrkA="; 19 }; 20 21 propagatedBuildInputs = [ 22 requests 23 ]; 24 25 nativeCheckInputs = [ 26 pytestCheckHook 27 requests-mock 28 ]; 29 30 pythonImportsCheck = [ 31 "doorbirdpy" 32 ]; 33 34 meta = with lib; { 35 description = "Python wrapper for the DoorBird LAN API"; 36 homepage = "https://gitlab.com/klikini/doorbirdpy"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ dotlambda ]; 39 }; 40}