about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/clickhouse-cityhash/default.nix
blob: d8fad65bef0d1b87fbd22524dc556db7598fbd39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, buildPythonPackage
, cython_3
, fetchPypi
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "clickhouse-cityhash";
  version = "1.0.2.4";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-ezEl19CqE8LMTnWDqWWmv7CqlqEhMUdbRCVSustV9Pg=";
  };

  nativeBuildInputs = [
    cython_3
    setuptools
  ];

  doCheck = false;

  pythonImportsCheck = [
    "clickhouse_cityhash"
  ];

  meta = with lib; {
    description = "Python-bindings for CityHash, a fast non-cryptographic hash algorithm";
    homepage = "https://github.com/xzkostyan/python-cityhash";
    license = licenses.upl;
    maintainers = with maintainers; [ breakds ];
  };
}