Something went wrong. Try again.
lol
Something went wrong. Try again.
1.1 kB · 45 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546{ lib, buildPythonPackage, cython, fetchPypi, fetchpatch, setuptools,}:
buildPythonPackage rec { pname = "clickhouse-cityhash"; version = "1.0.2.5"; pyproject = true;
src = fetchPypi { inherit version; pname = "clickhouse_cityhash"; hash = "sha256-T5jvgbIfDU2tWCR76kC6/AmM9v+g7eaZiC1KQurD7Xk="; };
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="; }) ];
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.upl; maintainers = with lib.maintainers; [ breakds ]; };}