1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, flit
6, async-timeout
7, lxml
8, httpx
9, pytestCheckHook
10, pytest-asyncio
11, pytest-httpx
12}:
13
14buildPythonPackage rec {
15 pname = "PyRMVtransport";
16 version = "0.3.2";
17 format = "pyproject";
18 disabled = pythonOlder "3.6";
19
20 src = fetchFromGitHub {
21 owner = "cgtobi";
22 repo = pname;
23 rev = "v${version}";
24 sha256 = "0m74m3dhxmbv10hsvs7cpshzs3pg66va5lyq94i5j1nxrl9i7spb";
25 };
26
27 nativeBuildInputs = [
28 flit
29 ];
30
31 propagatedBuildInputs = [
32 async-timeout
33 httpx
34 lxml
35 ];
36
37 pythonImportsCheck = [ "RMVtransport" ];
38
39 checkInputs = [
40 pytestCheckHook
41 pytest-asyncio
42 pytest-httpx
43 ];
44
45 meta = with lib; {
46 homepage = "https://github.com/cgtobi/PyRMVtransport";
47 description = "Get transport information from opendata.rmv.de";
48 license = licenses.mit;
49 maintainers = with maintainers; [ hexa ];
50 };
51}