Unverified Commit 58d51218 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python3Packages.viaggiatreno-ha: init at 0.2.4 (#491098)

parents 21166673 bc2be29d
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "viaggiatreno-ha";
  version = "0.2.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "monga";
    repo = "viaggiatreno_ha";
    tag = "v${version}";
    hash = "sha256-XmZVguuZK4pnAqINBWJbyAa5VesrQS6wP1jNPdWqhiQ=";
  };

  build-system = [ setuptools ];

  dependencies = [ aiohttp ];

  nativeCheckInputs = [ pytestCheckHook ];

  preCheck = ''
    cd tests
  '';

  # Tests use aiohttp's AioHTTPTestCase which starts a local TCP server
  __darwinAllowLocalNetworking = true;

  pythonImportsCheck = [ "viaggiatreno_ha" ];

  meta = {
    changelog = "https://github.com/monga/viaggiatreno_ha/releases/tag/${src.tag}";
    description = "Viaggiatreno API wrapper to use with Home Assistant";
    homepage = "https://github.com/monga/viaggiatreno_ha";
    license = lib.licenses.gpl3Plus;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}
+2 −1
Original line number Diff line number Diff line
@@ -6639,7 +6639,8 @@
      ];
    "viaggiatreno" =
      ps: with ps; [
      ]; # missing inputs: viaggiatreno_ha
        viaggiatreno-ha
      ];
    "vicare" =
      ps: with ps; [
        pyvicare
+2 −0
Original line number Diff line number Diff line
@@ -20456,6 +20456,8 @@ self: super: with self; {
  vharfbuzz = callPackage ../development/python-modules/vharfbuzz { };
  viaggiatreno-ha = callPackage ../development/python-modules/viaggiatreno-ha { };
  victron-vrm = callPackage ../development/python-modules/victron-vrm { };
  videocr = callPackage ../development/python-modules/videocr { };