1{ lib 2, aiohttp 3, async-timeout 4, buildPythonPackage 5, fetchFromGitHub 6, pythonOlder 7, setuptools 8, wheel 9}: 10 11buildPythonPackage rec { 12 pname = "loqedapi"; 13 version = "2.1.8"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "cpolhout"; 20 repo = "loqedAPI"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-9ekZ98GazH1tna4JT5SEUETKR227UYRIBBghdj+TFB4="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 wheel 28 ]; 29 30 propagatedBuildInputs = [ 31 aiohttp 32 async-timeout 33 ]; 34 35 # Tests require network access 36 doCheck = false; 37 38 pythonImportsCheck = [ 39 "loqedAPI" 40 ]; 41 42 meta = with lib; { 43 description = "Module to interact with the Loqed Smart Door Lock API"; 44 homepage = "https://github.com/cpolhout/loqedAPI"; 45 changelog = "https://github.com/cpolhout/loqedAPI/releases/tag/v${version}"; 46 license = licenses.bsd2; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}