nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 43 lines 913 B view raw
1{ lib 2, aiohttp 3, async-timeout 4, buildPythonPackage 5, fetchPypi 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "opensensemap-api"; 11 version = "0.2.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "sha256-KSukSPpSbfbEEqTq4zqqo8OT7ptdPrGy2QyQYjErQWI="; 19 }; 20 21 propagatedBuildInputs = [ 22 aiohttp 23 async-timeout 24 ]; 25 26 # no tests are present 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 license = with licenses; [ mit ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}