2019-10-08 10:28:23 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-09 23:20:53 +01:00
|
|
|
, pythonOlder
|
2019-10-08 10:28:23 +02:00
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
2020-09-09 19:46:33 +02:00
|
|
|
, semantic-version
|
2019-10-08 10:28:23 +02:00
|
|
|
, pytestrunner
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyhaversion";
|
2020-11-29 15:04:37 +01:00
|
|
|
version = "3.4.2";
|
2021-01-09 23:20:53 +01:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-09-09 18:11:17 +02:00
|
|
|
|
2019-10-08 10:28:23 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 15:04:37 +01:00
|
|
|
sha256 = "b4e49dfa0f9dae10edd072e630d902e5497daa312baad58b7df7618efe863377";
|
2019-10-08 10:28:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
2020-09-09 19:46:33 +02:00
|
|
|
semantic-version
|
2019-10-08 10:28:23 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pytestrunner
|
|
|
|
];
|
|
|
|
|
2021-01-09 23:20:53 +01:00
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pyhaversion" ];
|
2019-10-08 10:28:23 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A python module to the newest version number of Home Assistant";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/ludeeus/pyhaversion";
|
2021-01-09 23:20:53 +01:00
|
|
|
license = with licenses; [ mit ];
|
2019-10-08 10:28:23 +02:00
|
|
|
maintainers = [ maintainers.makefu ];
|
|
|
|
};
|
|
|
|
}
|