Commit 9ecae23b authored by Jamie Magee's avatar Jamie Magee
Browse files

python3Packages.solarman-opendata: init at 0.0.3

parent 5de70f89
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  wheel,
  aiohttp,
  pytest-asyncio,
  pytest-cov-stub,
  pytest-mock,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "solarman-opendata";
  version = "0.0.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "solarmanpv";
    repo = "solarman-opendata";
    tag = "v${finalAttrs.version}";
    hash = "sha256-mLwvAs+RFaHXjOgMaIhKKTU4Dqzdu/pLtAwYc/B6oj4=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    aiohttp
  ];

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

  pythonImportsCheck = [ "solarman_opendata" ];

  meta = {
    description = "Asynchronous Python API for Solarman devices";
    homepage = "https://github.com/solarmanpv/solarman-opendata";
    changelog = "https://github.com/solarmanpv/solarman-opendata/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -18010,6 +18010,8 @@ self: super: with self; {
  solarlog-cli = callPackage ../development/python-modules/solarlog-cli { };
  solarman-opendata = callPackage ../development/python-modules/solarman-opendata { };
  solax = callPackage ../development/python-modules/solax { };
  solc-select = callPackage ../development/python-modules/solc-select { };