blob: 1624a5fda2a610a6591a5eb49f16b0106adf7297 (
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
|
{ lib, buildPythonPackage, fetchFromGitHub
, flit
, lxml, aiohttp
, pytest, pytestcov, pytest-asyncio, pytest-mock, pytest-aiohttp, aresponses
, pythonOlder
}:
buildPythonPackage rec {
pname = "PyRMVtransport";
version = "0.2.9";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "cgtobi";
repo = pname;
rev = "v${version}";
sha256 = "1h3d0yxzrfi47zil5gr086v0780q768z8v5psvcikqw852f93vxb";
};
nativeBuildInputs = [
flit
];
propagatedBuildInputs = [
aiohttp
lxml
];
checkInputs = [
pytest
pytestcov
pytest-asyncio
pytest-mock
pytest-aiohttp
aresponses
];
checkPhase = ''
pytest --cov=RMVtransport tests
'';
meta = with lib; {
homepage = "https://github.com/cgtobi/PyRMVtransport";
description = "Get transport information from opendata.rmv.de";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}
|