python313Packages.clickhouse-cityhash: fix build for Python 3.13

This commit is contained in:
Konstantin Bogdanov
2025-09-09 02:31:08 +02:00
parent 16e0636220
commit e71a1ad8da
@@ -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" ];