2021-01-01 19:32:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "volkszaehler";
|
2021-02-03 18:00:47 +00:00
|
|
|
version = "0.2.1";
|
2021-01-01 19:32:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-03 18:00:47 +00:00
|
|
|
sha256 = "13zhxq08wn5y9yn6xbazfl0gxxysmirwpc26wcnr6jk2va1kpc4l";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|