From 7eb95e939ae092ab823c6ffcfdbf04c4b37bbcd5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 11 Feb 2023 12:14:09 +0100 Subject: [PATCH] python310Packages.pyoutbreaksnearme: init at 2022.10.0 --- .../pyoutbreaksnearme/default.nix | 60 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 62 insertions(+) create mode 100644 pkgs/development/python-modules/pyoutbreaksnearme/default.nix diff --git a/pkgs/development/python-modules/pyoutbreaksnearme/default.nix b/pkgs/development/python-modules/pyoutbreaksnearme/default.nix new file mode 100644 index 000000000000..ff2a4a4323c1 --- /dev/null +++ b/pkgs/development/python-modules/pyoutbreaksnearme/default.nix @@ -0,0 +1,60 @@ +{ lib +, aiohttp +, aresponses +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, pytest-asyncio +, pytest-aiohttp +, pytestCheckHook +, pythonOlder +, ujson +}: + +buildPythonPackage rec { + pname = "pyoutbreaksnearme"; + version = "2022.10.0"; + format = "pyproject"; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "bachya"; + repo = pname; + rev = "refs/tags/${version}"; + sha256 = "sha256-D7oXkKDSg+yF+j1WyG/VVY12hLU6oyhEtxLrF6IkMSA="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aiohttp + ujson + ]; + + nativeCheckInputs = [ + aresponses + pytest-asyncio + pytest-aiohttp + pytestCheckHook + ]; + + disabledTestPaths = [ + # Ignore the examples directory as the files are prefixed with test_. + "examples/" + ]; + + pythonImportsCheck = [ + "pyoutbreaksnearme" + ]; + + meta = with lib; { + description = "Library for retrieving data from for Outbreaks Near Me"; + homepage = "https://github.com/bachya/pyoutbreaksnearme"; + changelog = "https://github.com/bachya/pyoutbreaksnearme/releases/tag/${version}"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3710c88a2f6a..c7096639b8bf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7267,6 +7267,8 @@ self: super: with self; { pyorthanc = callPackage ../development/python-modules/pyorthanc { }; + pyoutbreaksnearme = callPackage ../development/python-modules/pyoutbreaksnearme { }; + pyoverkiz = callPackage ../development/python-modules/pyoverkiz { }; pyownet = callPackage ../development/python-modules/pyownet { };