1{
2 lib,
3 aiohttp,
4 beautifulsoup4,
5 buildPythonPackage,
6 cryptography,
7 fetchFromGitHub,
8 flit-core,
9 lxml,
10 pyjwt,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "skodaconnect";
16 version = "1.3.11";
17 pyproject = true;
18
19 disabled = pythonOlder "3.11";
20
21 src = fetchFromGitHub {
22 owner = "lendy007";
23 repo = "skodaconnect";
24 tag = version;
25 hash = "sha256-Cy2sXj8+t8lIqrKmI9Aa7tNEIvRArynU/02ajJ+tYHg=";
26 };
27
28 nativeBuildInputs = [ flit-core ];
29
30 propagatedBuildInputs = [
31 aiohttp
32 beautifulsoup4
33 cryptography
34 lxml
35 pyjwt
36 ];
37
38 # Project has no tests
39 doCheck = false;
40
41 pythonImportsCheck = [ "skodaconnect" ];
42
43 meta = with lib; {
44 description = "Python module to communicate with Skoda Connect";
45 homepage = "https://github.com/lendy007/skodaconnect";
46 changelog = "https://github.com/lendy007/skodaconnect/releases/tag/${version}";
47 license = with licenses; [ asl20 ];
48 maintainers = with maintainers; [ fab ];
49 };
50}