python3Packages.aioemonitor: init at 1.0.5

This commit is contained in:
Fabian Affolter 2021-04-10 21:11:42 +02:00
parent 41d8ec87b2
commit fec6f0b152
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-raises
, pytestCheckHook
, pythonOlder
, xmltodict
}:
buildPythonPackage rec {
pname = "aioemonitor";
version = "1.0.5";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bdraco";
repo = pname;
rev = "v${version}";
sha256 = "0h8zqqy8v8r1fl9bp3m8icr2sy44p0mbfl1hbb0zni17r9r50dhn";
};
propagatedBuildInputs = [
aiohttp
xmltodict
];
checkInputs = [
aioresponses
pytest-asyncio
pytest-raises
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py --replace '"pytest-runner>=5.2",' ""
'';
pythonImportsCheck = [ "aioemonitor" ];
meta = with lib; {
description = "Python client for SiteSage Emonitor";
homepage = "https://github.com/bdraco/aioemonitor";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -242,6 +242,8 @@ in {
aioeafm = callPackage ../development/python-modules/aioeafm { };
aioemonitor = callPackage ../development/python-modules/aioemonitor { };
aioesphomeapi = callPackage ../development/python-modules/aioesphomeapi { };
aioeventlet = callPackage ../development/python-modules/aioeventlet { };