{
  aiohttp,
  aioresponses,
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  poetry-core,
  pyjwt,
  pytest-asyncio,
  pytest-cov-stub,
  pytestCheckHook,
  yarl,
}:

buildPythonPackage rec {
  pname = "aiodukeenergy";
  version = "1.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "hunterjm";
    repo = "aiodukeenergy";
    tag = "v${version}";
    hash = "sha256-v8rWRjAlTGu7d0bQaAQ1A7Qm4oP3STkIzHcKLa8+/OY=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    aiohttp
    pyjwt
    yarl
  ];

  pythonImportsCheck = [ "aiodukeenergy" ];

  nativeCheckInputs = [
    aioresponses
    pytest-asyncio
    pytest-cov-stub
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/hunterjm/aiodukeenergy/blob/${src.tag}/CHANGELOG.md";
    description = "Asyncio Duke Energy";
    homepage = "https://github.com/hunterjm/aiodukeenergy";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}
