Files
Fabian Affolter 4793b25276 python3Packages.clickhouse-cityhash: 1.0.2.5 -> 1.0.2.6
This commit was automatically generated using update-python-libraries.
2026-08-25 01:24:13 +02:00

51 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
cython,
fetchPypi,
fetchpatch,
setuptools,
}:
buildPythonPackage rec {
pname = "clickhouse-cityhash";
version = "1.0.2.6";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "clickhouse_cityhash";
hash = "sha256-Yq9sraxmVWE3cGZKsmgCjlyLcvyXgrMMD12HJK9Sx78=";
};
nativeBuildInputs = [
cython
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=";
})
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "Cython>=3.0,<3.1" "Cython>=3.0"
'';
doCheck = false;
pythonImportsCheck = [ "clickhouse_cityhash" ];
meta = {
description = "Python-bindings for CityHash, a fast non-cryptographic hash algorithm";
homepage = "https://github.com/xzkostyan/python-cityhash";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ breakds ];
};
}