From 1e1d2eb81b4deb88715f137c6202fd5d9a7c638b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 2 Apr 2025 22:09:33 +0200 Subject: [PATCH] python313Packages.pyporscheconnectapi: init at 0.2.3 Python client library for Porsche Connect API https://github.com/CJNE/pyporscheconnectapi --- .../pyporscheconnectapi/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/pyporscheconnectapi/default.nix diff --git a/pkgs/development/python-modules/pyporscheconnectapi/default.nix b/pkgs/development/python-modules/pyporscheconnectapi/default.nix new file mode 100644 index 000000000000..13ee074de752 --- /dev/null +++ b/pkgs/development/python-modules/pyporscheconnectapi/default.nix @@ -0,0 +1,48 @@ +{ + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f1d6ddb041a0..dd9b7333774d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12873,6 +12873,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 { };