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
|
2021-01-14 22:52:50 +00:00
|
|
|
, pythonOlder
|
2021-01-10 10:01:43 +00:00
|
|
|
, 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-03-31 20:11:52 +01:00
|
|
|
version = "21.3.0";
|
2021-01-10 10:01:43 +00:00
|
|
|
|
|
|
|
# Only 3.8.0 and beyond are supported
|
2021-01-14 22:52:50 +00:00
|
|
|
disabled = pythonOlder "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;
|
2021-03-31 20:11:52 +01:00
|
|
|
sha256 = "sha256-2vW4BN5qwJZYQ8FU3bpSA2v1dX6TOhcHDbHRMDPoRAs=";
|
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
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|