mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 20:36:27 +00:00
38 lines
835 B
Nix
38 lines
835 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, aiohttp
|
|
, async-timeout
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "opensensemap-api";
|
|
version = "0.1.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-e60aVIoKFqo++WJHUYGutugkjB8YgyNQgJbILgAyOOY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
async-timeout
|
|
];
|
|
|
|
# no tests are present
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "opensensemap_api" ];
|
|
|
|
meta = with lib; {
|
|
description = "OpenSenseMap API Python client";
|
|
longDescription = ''
|
|
Python Client for interacting with the openSenseMap API. All
|
|
available information from the sensor can be retrieved.
|
|
'';
|
|
homepage = "https://github.com/home-assistant-ecosystem/python-opensensemap-api";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|