2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2021-01-15 22:18:51 +00:00
|
|
|
, aresponses
|
2020-04-24 23:36:52 +00:00
|
|
|
, async-timeout
|
2021-01-15 22:18:51 +00:00
|
|
|
, awesomeversion
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-asyncio
|
2021-01-15 22:18:51 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyhaversion";
|
2021-10-11 16:52:03 +00:00
|
|
|
version = "21.10.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
# Only 3.8.0 and beyond are supported
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ludeeus";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-11 16:52:03 +00:00
|
|
|
sha256 = "sha256-7J7zzJlevNQb7TpFYuGvsk3EWBgwhmV32xPNSLA/LS4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
2021-01-15 22:18:51 +00:00
|
|
|
awesomeversion
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aresponses
|
2021-01-15 22:18:51 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
pythonImportsCheck = [ "pyhaversion" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2021-01-15 22:18:51 +00:00
|
|
|
description = "Python module to the newest version number of Home Assistant";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/ludeeus/pyhaversion";
|
2021-01-15 22:18:51 +00:00
|
|
|
changelog = "https://github.com/ludeeus/pyhaversion/releases/tag/${version}";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ makefu ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|