1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, setuptools-scm
6, aiohttp
7, pytz
8, voluptuous
9}:
10
11buildPythonPackage rec {
12 pname = "pygti";
13 version = "0.9.4";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "vigonotion";
19 repo = "pygti";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-2T4Yw4XEOkv+IWyB4Xa2dPu929VH0tLeUjQ5S8EVXz0=";
22 };
23
24 nativeBuildInputs = [
25 setuptools-scm
26 ];
27
28 SETUPTOOLS_SCM_PRETEND_VERSION = version;
29
30 propagatedBuildInputs = [
31 aiohttp
32 pytz
33 voluptuous
34 ];
35
36 # no tests implemented
37 doCheck = false;
38
39 pythonImportsCheck = [
40 "pygti.auth"
41 "pygti.exceptions"
42 "pygti.gti"
43 ];
44
45 meta = with lib; {
46 description = "Access public transport information in Hamburg, Germany";
47 homepage = "https://github.com/vigonotion/pygti";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ dotlambda ];
50 };
51}