From 1cc979c20fcd89f5aead923fca87e036b03b0e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 14 Dec 2022 22:08:45 -0800 Subject: [PATCH] python310Packages.here-routing: init at 0.2.0 --- .../python-modules/here-routing/default.nix | 58 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 60 insertions(+) create mode 100644 pkgs/development/python-modules/here-routing/default.nix diff --git a/pkgs/development/python-modules/here-routing/default.nix b/pkgs/development/python-modules/here-routing/default.nix new file mode 100644 index 000000000000..47fb3416c808 --- /dev/null +++ b/pkgs/development/python-modules/here-routing/default.nix @@ -0,0 +1,58 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, poetry-core +, aiohttp +, async-timeout +, yarl +, aresponses +, pytest-asyncio +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "here-routing"; + version = "0.2.0"; + + disabled = pythonOlder "3.8"; + + format = "pyproject"; + + src = fetchFromGitHub { + owner = "eifinger"; + repo = "here_routing"; + rev = "v${version}"; + hash = "sha256-IXiYLDrPXc6YT8u0QT6f2GAjBNYhWwzkFxGhmAyiq5s="; + }; + + postPatch = '' + sed -i "/^addopts/d" pyproject.toml + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aiohttp + async-timeout + yarl + ]; + + checkInputs = [ + aresponses + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "here_routing" ]; + + meta = { + changelog = "https://github.com/eifinger/here_routing/blob/${src.rev}/CHANGELOG.md"; + description = "Asynchronous Python client for the HERE Routing V8 API"; + homepage = "https://github.com/eifinger/here_routing"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5da24e7d828f..ebff84904711 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4212,6 +4212,8 @@ self: super: with self; { hepunits = callPackage ../development/python-modules/hepunits { }; + here-routing = callPackage ../development/python-modules/here-routing { }; + herepy = callPackage ../development/python-modules/herepy { }; hetzner = callPackage ../development/python-modules/hetzner { };