Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildPythonPackage, click, fetchpatch2, fetchPypi, ratelim, requests, setuptools, six,}:
buildPythonPackage (finalAttrs: { pname = "geocoder"; version = "1.38.1"; pyproject = true;
src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-yZJTdMlhV30K7kA7Ceb46hlx2RPwEfAMpwx2vq96d+c="; };
patches = [ # Remove future package to address CVE-2025-50817, https://github.com/DenisCarriere/geocoder/pull/488 (fetchpatch2 { name = "remove-future.patch"; url = "https://github.com/DenisCarriere/geocoder/commit/b15f3bb227414e90020a560176eb06fd39660df5.patch"; hash = "sha256-v1sFe8xMzJjaPkRVdzW8MK3eYgFORxl+iug/qHvc26U="; }) ];
postPatch = '' substituteInPlace setup.py \ --replace-fail "version=version," "version='${finalAttrs.version}'," '';
build-system = [ setuptools ];
dependencies = [ click ratelim requests six ];
# Tests are outdated doCheck = false;
pythonImportsCheck = [ "geocoder" ];
meta = { description = "Module for geocoding"; homepage = "https://pypi.org/project/geocoder/"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };})