2019-10-08 09:28:23 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-09-09 17:11:17 +01:00
|
|
|
, isPy3k
|
2019-10-08 09:28:23 +01:00
|
|
|
# propagatedBuildInputs
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
2020-09-09 18:46:33 +01:00
|
|
|
, semantic-version
|
2019-10-08 09:28:23 +01:00
|
|
|
# buildInputs
|
|
|
|
, pytestrunner
|
|
|
|
# checkInputs
|
|
|
|
, pytest
|
|
|
|
, pytest-asyncio
|
|
|
|
, aresponses
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyhaversion";
|
2020-11-29 14:04:37 +00:00
|
|
|
version = "3.4.2";
|
2019-10-08 09:28:23 +01:00
|
|
|
|
2020-09-09 17:11:17 +01:00
|
|
|
# needs aiohttp which is py3k-only
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2019-10-08 09:28:23 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:37 +00:00
|
|
|
sha256 = "b4e49dfa0f9dae10edd072e630d902e5497daa312baad58b7df7618efe863377";
|
2019-10-08 09:28:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
2020-09-09 18:46:33 +01:00
|
|
|
semantic-version
|
2019-10-08 09:28:23 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pytestrunner
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
pytest-asyncio
|
|
|
|
aresponses
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A python module to the newest version number of Home Assistant";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ludeeus/pyhaversion";
|
2019-10-08 09:28:23 +01:00
|
|
|
maintainers = [ maintainers.makefu ];
|
|
|
|
};
|
|
|
|
}
|