depot/third_party/nixpkgs/pkgs/development/python-modules/PyRMVtransport/default.nix
Default email 3e2acf8aff Project import generated by Copybara.
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
2021-05-20 18:08:51 -05:00

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.2";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "cgtobi";
repo = pname;
rev = "v${version}";
sha256 = "0m74m3dhxmbv10hsvs7cpshzs3pg66va5lyq94i5j1nxrl9i7spb";
};
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 ];
};
}