{ lib, buildPythonPackage, fetchFromGitHub, pycognito, pytestCheckHook, pythonOlder, requests, setuptools, setuptools-scm, }: buildPythonPackage rec { pname = "pyschlage"; version = "2025.9.0"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "dknowles2"; repo = "pyschlage"; tag = version; hash = "sha256-ROLtRN/J6LdL67CQ/Ui60RLMLNStb1CZlvQGt8xerOA="; }; build-system = [ setuptools setuptools-scm ]; dependencies = [ pycognito requests ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pyschlage" ]; meta = with lib; { description = "Library for interacting with Schlage Encode WiFi locks"; homepage = "https://github.com/dknowles2/pyschlage"; changelog = "https://github.com/dknowles2/pyschlage/releases/tag/${src.tag}"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; }; }