439a6efcab
GitOrigin-RevId: f6b5bfdb470d60a876992749d0d708ed7b6b56ca
51 lines
911 B
Nix
51 lines
911 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, flit
|
|
, async-timeout
|
|
, lxml
|
|
, httpx
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
, pytest-httpx
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyRMVtransport";
|
|
version = "0.3.1";
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cgtobi";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1savzndg8l7rrc5dgzgsrdz9hnnjfv6qs5drznqmdw4f2rq84ypa";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
async-timeout
|
|
httpx
|
|
lxml
|
|
];
|
|
|
|
pythonImportsCheck = [ "RMVtransport" ];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
pytest-httpx
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/cgtobi/PyRMVtransport";
|
|
description = "Get transport information from opendata.rmv.de";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|