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 7488d38f898d..6d1b37581114 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };