2019-10-08 09:28:23 +01:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2021-01-10 10:01:43 +00:00
|
|
|
, aresponses
|
2019-10-08 09:28:23 +01:00
|
|
|
, async-timeout
|
2021-01-10 10:01:43 +00:00
|
|
|
, awesomeversion
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonAtLeast
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2019-10-08 09:28:23 +01:00
|
|
|
}:
|
2021-01-10 10:01:43 +00:00
|
|
|
|
2019-10-08 09:28:23 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyhaversion";
|
2021-01-10 10:01:43 +00:00
|
|
|
version = "20.12.1";
|
|
|
|
|
|
|
|
# Only 3.8.0 and beyond are supported
|
|
|
|
disabled = pythonAtLeast "3.8";
|
2020-09-09 17:11:17 +01:00
|
|
|
|
2021-01-10 10:01:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ludeeus";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "17yl67dgw75dghljcfwzblm11kqnh6sxf47w62mxz86aq9zrvcxd";
|
2019-10-08 09:28:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
2021-01-10 10:01:43 +00:00
|
|
|
awesomeversion
|
2019-10-08 09:28:23 +01:00
|
|
|
];
|
|
|
|
|
2021-01-10 10:01:43 +00:00
|
|
|
checkInputs = [
|
|
|
|
aresponses
|
|
|
|
awesomeversion
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
2019-10-08 09:28:23 +01:00
|
|
|
];
|
|
|
|
|
2021-01-09 22:20:53 +00:00
|
|
|
pythonImportsCheck = [ "pyhaversion" ];
|
2019-10-08 09:28:23 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-01-10 10:01:43 +00:00
|
|
|
description = "Python module to the newest version number of Home Assistant";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ludeeus/pyhaversion";
|
2021-01-10 10:01:43 +00:00
|
|
|
changelog = "https://github.com/ludeeus/pyhaversion/releases/tag/${version}";
|
2021-01-09 22:20:53 +00:00
|
|
|
license = with licenses; [ mit ];
|
2021-01-10 10:01:43 +00:00
|
|
|
maintainers = with maintainers; [ makefu ];
|
2019-10-08 09:28:23 +01:00
|
|
|
};
|
|
|
|
}
|