1{
2 lib,
3 beautifulsoup4,
4 buildPythonPackage,
5 fetchFromGitHub,
6 httpx,
7 rich,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "pyporscheconnectapi";
13 version = "0.2.4";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "CJNE";
18 repo = "pyporscheconnectapi";
19 tag = version;
20 hash = "sha256-fU+P2M4TQzhyNk4CfcTBpaIOFC0sPaOLh/iGCjLIG5I=";
21 };
22
23 postPatch = ''
24 substituteInPlace setup.py \
25 --replace-fail '"pytest-runner"' ""
26 '';
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 beautifulsoup4
32 httpx
33 rich
34 ];
35
36 # Module has no tests
37 doCheck = false;
38
39 pythonImportsCheck = [ "pyporscheconnectapi" ];
40
41 meta = {
42 description = "Python client library for Porsche Connect API";
43 homepage = "https://github.com/CJNE/pyporscheconnectapi";
44 changelog = "https://github.com/CJNE/pyporscheconnectapi/releases/tag/${src.tag}";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ fab ];
47 };
48}