1{
2 lib,
3 aiohttp,
4 beautifulsoup4,
5 buildPythonPackage,
6 cryptography,
7 fetchFromGitHub,
8 lxml,
9 pyjwt,
10 pythonOlder,
11 setuptools-scm,
12 xmltodict,
13}:
14
15buildPythonPackage rec {
16 pname = "seatconnect";
17 version = "1.1.9";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchFromGitHub {
23 owner = "farfar";
24 repo = "seatconnect";
25 tag = version;
26 hash = "sha256-HITVrI0o94a61gy/TYSGFtLBYX4Rw/dK1o2/KsvHLTQ=";
27 };
28
29 nativeBuildInputs = [ setuptools-scm ];
30
31 propagatedBuildInputs = [
32 aiohttp
33 beautifulsoup4
34 cryptography
35 lxml
36 pyjwt
37 xmltodict
38 ];
39
40 # Project only has a dummy test
41 doCheck = false;
42
43 pythonImportsCheck = [ "seatconnect" ];
44
45 meta = with lib; {
46 description = "Python module to communicate with Seat Connect";
47 homepage = "https://github.com/farfar/seatconnect";
48 changelog = "https://github.com/Farfar/seatconnect/releases/tag/${version}";
49 license = with licenses; [ asl20 ];
50 maintainers = with maintainers; [ fab ];
51 };
52}