nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 45 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchPypi, 6 fetchpatch, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "clickhouse-cityhash"; 12 version = "1.0.2.5"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit version; 17 pname = "clickhouse_cityhash"; 18 hash = "sha256-T5jvgbIfDU2tWCR76kC6/AmM9v+g7eaZiC1KQurD7Xk="; 19 }; 20 21 nativeBuildInputs = [ 22 cython 23 setuptools 24 ]; 25 26 patches = [ 27 (fetchpatch { 28 # Cython 3.1 removed long() function. 29 # https://github.com/xzkostyan/clickhouse-cityhash/pull/6 30 url = "https://github.com/thevar1able/clickhouse-cityhash/commit/1109fc80e24cb44ec9ee2885e1e5cce7141c7ad8.patch"; 31 hash = "sha256-DcmASvDK160IokC5OuZoXpAHKbBOReGs96SU7yW9Ncc="; 32 }) 33 ]; 34 35 doCheck = false; 36 37 pythonImportsCheck = [ "clickhouse_cityhash" ]; 38 39 meta = { 40 description = "Python-bindings for CityHash, a fast non-cryptographic hash algorithm"; 41 homepage = "https://github.com/xzkostyan/python-cityhash"; 42 license = lib.licenses.upl; 43 maintainers = with lib.maintainers; [ breakds ]; 44 }; 45}