14 buildPythonPackage rec {
15 pname = "pyhaversion";
19 disabled = pythonOlder "3.12";
21 src = fetchFromGitHub {
24 rev = "refs/tags/${version}";
25 hash = "sha256-UZ9236mERoz3WG9MfeN1ALKc8OjqpcbbIhiEsRYzn4I=";
29 # Upstream doesn't set a version for the tagged releases
30 substituteInPlace pyproject.toml \
31 --replace-fail 'version = "0"' 'version = "${version}"'
34 build-system = [ poetry-core ];
47 pythonImportsCheck = [ "pyhaversion" ];
50 # Error fetching version information from HaVersionSource.SUPERVISOR Server disconnected
56 description = "Python module to the newest version number of Home Assistant";
57 homepage = "https://github.com/ludeeus/pyhaversion";
58 changelog = "https://github.com/ludeeus/pyhaversion/releases/tag/${version}";
59 license = with licenses; [ mit ];
60 maintainers = with maintainers; [ makefu ];