2021-02-17 17:02:09 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2020-07-18 16:06:22 +00:00
|
|
|
, pythonOlder
|
2021-02-17 17:02:09 +00:00
|
|
|
, flit
|
|
|
|
, async-timeout
|
|
|
|
, lxml
|
|
|
|
, httpx
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-httpx
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyRMVtransport";
|
2020-11-19 00:13:47 +00:00
|
|
|
version = "0.2.10";
|
2020-07-18 16:06:22 +00:00
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cgtobi";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-19 00:13:47 +00:00
|
|
|
sha256 = "03qrylidb1d6zw6a22d1drdf73cvfxqcqaa8qi8x4pli1axcfh5w";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
flit
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-02-17 17:02:09 +00:00
|
|
|
async-timeout
|
2020-11-19 00:13:47 +00:00
|
|
|
httpx
|
2020-07-18 16:06:22 +00:00
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
pythonImportsCheck = [ "RMVtransport" ];
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
checkInputs = [
|
2021-02-17 17:02:09 +00:00
|
|
|
pytestCheckHook
|
2020-07-18 16:06:22 +00:00
|
|
|
pytest-asyncio
|
2021-02-17 17:02:09 +00:00
|
|
|
pytest-httpx
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/cgtobi/PyRMVtransport";
|
|
|
|
description = "Get transport information from opendata.rmv.de";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|