1{ lib 2, aiohttp 3, async-timeout 4, buildPythonPackage 5, fetchPypi 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "opensensemap-api"; 11 version = "0.3.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-UrgQjZYw7TlFvhnaI7wFUpuUYeVKO5hsnx8h1OKfV8w="; 19 }; 20 21 propagatedBuildInputs = [ 22 aiohttp 23 async-timeout 24 ]; 25 26 # Module has no tests 27 doCheck = false; 28 29 pythonImportsCheck = [ 30 "opensensemap_api" 31 ]; 32 33 meta = with lib; { 34 description = "OpenSenseMap API Python client"; 35 longDescription = '' 36 Python Client for interacting with the openSenseMap API. All 37 available information from the sensor can be retrieved. 38 ''; 39 homepage = "https://github.com/home-assistant-ecosystem/python-opensensemap-api"; 40 changelog = "https://github.com/home-assistant-ecosystem/python-opensensemap-api/releases/tag/${version}"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}