evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / opensensemap-api / default.nix
blobab9b93fc6f389afa2c50f6df0348cd42403701d7
2   lib,
3   aiohttp,
4   async-timeout,
5   buildPythonPackage,
6   fetchFromGitHub,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "opensensemap-api";
12   version = "0.3.2";
13   format = "setuptools";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "home-assistant-ecosystem";
19     repo = "python-opensensemap-api";
20     rev = "refs/tags/${version}";
21     hash = "sha256-iUSdjU41JOT7k044EI2XEvJiSo6V4mO6S51EcIughEM=";
22   };
24   propagatedBuildInputs = [
25     aiohttp
26     async-timeout
27   ];
29   # Module has no tests
30   doCheck = false;
32   pythonImportsCheck = [ "opensensemap_api" ];
34   meta = with lib; {
35     description = "OpenSenseMap API Python client";
36     longDescription = ''
37       Python Client for interacting with the openSenseMap API. All
38       available information from the sensor can be retrieved.
39     '';
40     homepage = "https://github.com/home-assistant-ecosystem/python-opensensemap-api";
41     changelog = "https://github.com/home-assistant-ecosystem/python-opensensemap-api/releases/tag/${version}";
42     license = with licenses; [ mit ];
43     maintainers = with maintainers; [ fab ];
44   };