Unverified Commit d43bbf46 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

python313Packages.clickhouse-cityhash: fix build for Python 3.13 (#440905)

parents c1a2638d e71a1ad8
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  buildPythonPackage,
  cython,
  fetchPypi,
  fetchpatch,
  pythonOlder,
  setuptools,
}:
@@ -24,6 +25,15 @@ buildPythonPackage rec {
    setuptools
  ];

  patches = [
    (fetchpatch {
      # Cython 3.1 removed long() function.
      # https://github.com/xzkostyan/clickhouse-cityhash/pull/6
      url = "https://github.com/thevar1able/clickhouse-cityhash/commit/1109fc80e24cb44ec9ee2885e1e5cce7141c7ad8.patch";
      hash = "sha256-DcmASvDK160IokC5OuZoXpAHKbBOReGs96SU7yW9Ncc=";
    })
  ];

  doCheck = false;

  pythonImportsCheck = [ "clickhouse_cityhash" ];