2021-01-01 19:32:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "volkszaehler";
|
2021-03-20 21:20:32 +00:00
|
|
|
version = "0.2.2";
|
2021-01-01 19:32:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-20 21:20:32 +00:00
|
|
|
sha256 = "sha256-1oqzhC3Yq2V30F3ilr80vKFnTmI/CdIVLuzMlIr40xI=";
|
2021-01-01 19:32:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests are present
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "volkszaehler" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Wrapper for interacting with the Volkszahler API";
|
|
|
|
homepage = "https://github.com/home-assistant-ecosystem/python-volkszaehler";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|