Commit b1c6c6e4 authored by Fabian Affolter's avatar Fabian Affolter
Browse files
parent f97bfaaf
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
{
  lib,
  aiohttp,
  async-timeout,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  hatchling,
  pytest-asyncio,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "volkszaehler";
  version = "0.5.2";
  version = "0.6.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "home-assistant-ecosystem";
    repo = "python-volkszaehler";
    tag = version;
    hash = "sha256-2XOV+Cft7xLIDNDpwNc+F8VasCYD8XEkxnwW0iS/p9U=";
    hash = "sha256-DgsP3ol6VcOnoUJF1eQjNWR45SokElNosyfgvPZVihU=";
  };

  build-system = [ setuptools ];
  build-system = [ hatchling ];

  dependencies = [
    aiohttp
    async-timeout
  ];
  dependencies = [ aiohttp ];

  # no tests are present
  doCheck = false;
  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
  ];

  pythonImportsCheck = [ "volkszaehler" ];