Commit 11fb2841 authored by Jamie Magee's avatar Jamie Magee
Browse files

python3Packages.mvg: init at 1.6.0

parent 322dc9ab
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchPypi,
  furl,
  hatchling,
  pytestCheckHook,
  pytest-asyncio,
}:

buildPythonPackage (finalAttrs: {
  pname = "mvg";
  version = "1.6.0";
  pyproject = true;

  src = fetchPypi {
    inherit (finalAttrs) pname version;
    hash = "sha256-jpk6DUaQYtL7OHDOznhgAp0N8qao0wQI5benfPXwhJI=";
  };

  build-system = [ hatchling ];

  dependencies = [
    aiohttp
    furl
  ];

  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
  ];

  # tests require network access
  doCheck = false;

  pythonImportsCheck = [ "mvg" ];

  meta = {
    description = "An unofficial interface to timetable information of the Münchner Verkehrsgesellschaft (MVG)";
    homepage = "https://github.com/mondbaron/mvg";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -10288,6 +10288,8 @@ self: super: with self; {
  mutf8 = callPackage ../development/python-modules/mutf8 { };
  mvg = callPackage ../development/python-modules/mvg { };
  mwcli = callPackage ../development/python-modules/mwcli { };
  mwclient = callPackage ../development/python-modules/mwclient { };