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