bb5b50588c
GitOrigin-RevId: 9816b99e71c3504b0b4c1f8b2e004148460029d4
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.0";
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cgtobi";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1y412xmdskf13673igzsqsglpdc3d5r6pbm8j85csax0blv7rn1m";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|