Files
nixpkgs/pkgs/development/python-modules/pygeocodio/default.nix
2025-10-04 05:03:12 +02:00

52 lines
1.0 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
hatchling,
requests,
pytestCheckHook,
httpretty,
}:
buildPythonPackage rec {
pname = "pygeocodio";
version = "2.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "bennylope";
repo = "pygeocodio";
tag = "v${version}";
hash = "sha256-4jT/PX+jvJx81eaSXTsb/vLNbv4dNNVgeYrE7QwGlL8=";
};
build-system = [
hatchling
];
dependencies = [
requests
httpretty
];
pythonImportsCheck = [ "geocodio" ];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
"test_timeout"
];
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/${src.tag}/HISTORY.rst";
homepage = "https://www.geocod.io/docs/#introduction";
license = with lib.licenses; [ bsd3 ];
maintainers = with lib.maintainers; [ ethancedwards8 ];
};
}