2021-02-16 21:35:49 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2020-06-21 14:47:51 +01:00
|
|
|
, pythonOlder
|
2021-02-16 21:35:49 +00:00
|
|
|
, flit
|
|
|
|
, async-timeout
|
|
|
|
, lxml
|
|
|
|
, httpx
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-httpx
|
2020-06-21 14:47:51 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-11-08 22:00:15 +00:00
|
|
|
pname = "pyrmvtransport";
|
2021-05-06 16:04:38 +01:00
|
|
|
version = "0.3.2";
|
2020-06-21 14:47:51 +01:00
|
|
|
format = "pyproject";
|
2021-11-08 22:00:15 +00:00
|
|
|
|
2020-06-21 14:47:51 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cgtobi";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-06 16:04:38 +01:00
|
|
|
sha256 = "0m74m3dhxmbv10hsvs7cpshzs3pg66va5lyq94i5j1nxrl9i7spb";
|
2020-06-21 14:47:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
flit
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-02-16 21:35:49 +00:00
|
|
|
async-timeout
|
2020-11-18 03:10:46 +00:00
|
|
|
httpx
|
2020-06-21 14:47:51 +01:00
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-02-16 21:35:49 +00:00
|
|
|
pytestCheckHook
|
2020-06-21 14:47:51 +01:00
|
|
|
pytest-asyncio
|
2021-02-16 21:35:49 +00:00
|
|
|
pytest-httpx
|
2020-06-21 14:47:51 +01:00
|
|
|
];
|
|
|
|
|
2021-11-08 22:00:15 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"RMVtransport"
|
|
|
|
];
|
|
|
|
|
2020-06-21 14:47:51 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|