1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pycognito, 6 pytestCheckHook, 7 pythonOlder, 8 requests, 9 setuptools, 10 setuptools-scm, 11}: 12 13buildPythonPackage rec { 14 pname = "pyschlage"; 15 version = "2024.2.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "dknowles2"; 22 repo = "pyschlage"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-kjAV7VHKp7WpT6dNjuzYMTlcXbyIB2MNZQXOckDLWF8="; 25 }; 26 27 nativeBuildInputs = [ 28 setuptools 29 setuptools-scm 30 ]; 31 32 propagatedBuildInputs = [ 33 pycognito 34 requests 35 ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 pythonImportsCheck = [ "pyschlage" ]; 40 41 meta = with lib; { 42 description = "Library for interacting with Schlage Encode WiFi locks"; 43 homepage = "https://github.com/dknowles2/pyschlage"; 44 changelog = "https://github.com/dknowles2/pyschlage/releases/tag/${version}"; 45 license = licenses.asl20; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}