Unverified Commit 6b617cec authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.pyporscheconnectapi: init at 0.2.3 (#395583)

parents a4e4505b 1e1d2eb8
Loading
Loading
Loading
Loading
+48 −0
Original line number Diff line number Diff line
{
  lib,
  beautifulsoup4,
  buildPythonPackage,
  fetchFromGitHub,
  httpx,
  rich,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pyporscheconnectapi";
  version = "0.2.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "CJNE";
    repo = "pyporscheconnectapi";
    tag = version;
    hash = "sha256-MQYhIp+DUYcRKAEwcT8qzrFY043b33BHR8jma3jR0lE=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail '"pytest-runner"' ""
  '';

  build-system = [ setuptools ];

  dependencies = [
    beautifulsoup4
    httpx
    rich
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "pyporscheconnectapi" ];

  meta = {
    description = "Python client library for Porsche Connect API";
    homepage = "https://github.com/CJNE/pyporscheconnectapi";
    changelog = "https://github.com/CJNE/pyporscheconnectapi/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -12877,6 +12877,8 @@ self: super: with self; {
  pypoolstation = callPackage ../development/python-modules/pypoolstation { };
  pyporscheconnectapi = callPackage ../development/python-modules/pyporscheconnectapi { };
  pyppeteer = callPackage ../development/python-modules/pyppeteer { };
  pyppmd = callPackage ../development/python-modules/pyppmd { };