depot/third_party/nixpkgs/pkgs/development/python-modules/PyRMVtransport/default.nix

52 lines
912 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, flit
, async-timeout
, lxml
, httpx
, pytestCheckHook
, pytest-asyncio
, pytest-httpx
}:
buildPythonPackage rec {
pname = "PyRMVtransport";
version = "0.2.10";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "cgtobi";
repo = pname;
rev = "v${version}";
sha256 = "03qrylidb1d6zw6a22d1drdf73cvfxqcqaa8qi8x4pli1axcfh5w";
};
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 ];
};
}