summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/skodaconnect/default.nix
blob: 92c21fb86c5addbc29667a5a25ff80115d76d5b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  lib,
  aiohttp,
  beautifulsoup4,
  buildPythonPackage,
  cryptography,
  fetchFromGitHub,
  flit-core,
  lxml,
  pyjwt,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "skodaconnect";
  version = "1.3.11";
  pyproject = true;

  disabled = pythonOlder "3.11";

  src = fetchFromGitHub {
    owner = "lendy007";
    repo = "skodaconnect";
    tag = version;
    hash = "sha256-Cy2sXj8+t8lIqrKmI9Aa7tNEIvRArynU/02ajJ+tYHg=";
  };

  nativeBuildInputs = [ flit-core ];

  propagatedBuildInputs = [
    aiohttp
    beautifulsoup4
    cryptography
    lxml
    pyjwt
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "skodaconnect" ];

  meta = {
    description = "Python module to communicate with Skoda Connect";
    homepage = "https://github.com/lendy007/skodaconnect";
    changelog = "https://github.com/lendy007/skodaconnect/releases/tag/${version}";
    license = with lib.licenses; [ asl20 ];
    maintainers = with lib.maintainers; [ fab ];
  };
}