Files
nixpkgs/pkgs/development/python-modules/clickhouse-cityhash/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

45 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
cython,
fetchPypi,
fetchpatch,
setuptools,
}:
buildPythonPackage rec {
pname = "clickhouse-cityhash";
version = "1.0.2.4";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-ezEl19CqE8LMTnWDqWWmv7CqlqEhMUdbRCVSustV9Pg=";
};
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 ];
};
}