12 buildPythonPackage rec {
13 pname = "pyhaversion";
15 format = "setuptools";
17 disabled = pythonOlder "3.8";
19 src = fetchFromGitHub {
22 rev = "refs/tags/${version}";
23 hash = "sha256-HMJqZn0yzN2dP5WTRCbem1Xw8nyH2Hy7oVP4kEKHHAo=";
27 # Upstream doesn't set a version for the tagged releases
28 substituteInPlace setup.py \
29 --replace "main" ${version}
32 propagatedBuildInputs = [
43 pythonImportsCheck = [
48 # Error fetching version information from HaVersionSource.SUPERVISOR Server disconnected
54 description = "Python module to the newest version number of Home Assistant";
55 homepage = "https://github.com/ludeeus/pyhaversion";
56 changelog = "https://github.com/ludeeus/pyhaversion/releases/tag/${version}";
57 license = with licenses; [ mit ];
58 maintainers = with maintainers; [ makefu ];