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