diff --git a/pkgs/development/python-modules/pygeocodio/default.nix b/pkgs/development/python-modules/pygeocodio/default.nix new file mode 100644 index 000000000000..f3fd671ed513 --- /dev/null +++ b/pkgs/development/python-modules/pygeocodio/default.nix @@ -0,0 +1,46 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + requests, + pytestCheckHook, + httpretty, +}: + +buildPythonPackage rec { + pname = "pygeocodio"; + version = "1.4.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "bennylope"; + repo = "pygeocodio"; + tag = "v${version}"; + hash = "sha256-s6sY+iHuWv7+6ydxDWoN9eKiAXw0jeASWiMtz12TTHo="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + requests + httpretty + ]; + + pythonImportsCheck = [ "geocodio" ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + description = "Python wrapper for the Geocodio geolocation service API"; + downloadPage = "https://github.com/bennylope/pygeocodio/tree/master"; + changelog = "https://github.com/bennylope/pygeocodio/blob/v${version}/HISTORY.rst"; + homepage = "https://www.geocod.io/docs/#introduction"; + license = with lib.licenses; [ bsd3 ]; + maintainers = with lib.maintainers; [ ethancedwards8 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9dbb671c5b2b..c19355eced0a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11800,6 +11800,8 @@ self: super: with self; { pygdbmi = callPackage ../development/python-modules/pygdbmi { }; + pygeocodio = callPackage ../development/python-modules/pygeocodio { }; + pygetwindow = callPackage ../development/python-modules/pygetwindow { }; pygit2 = callPackage ../development/python-modules/pygit2 { };