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