Merge pull request #106039 from breakds/clickhouse-driver

authored by Sandro and committed by GitHub 5b7667a1 6dfa0d8c

+79
+27
pkgs/development/python-modules/clickhouse-cityhash/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , setuptools 5 + }: 6 + 7 + buildPythonPackage rec { 8 + pname = "clickhouse-cityhash"; 9 + version = "1.0.2.3"; 10 + 11 + src = fetchPypi { 12 + inherit pname version; 13 + sha256 = "0z8nl0ly2p1h6nygwxs6y40q8y424w40fkjv3jyf8vvcg4h7sdrg"; 14 + }; 15 + 16 + propagatedBuildInputs = [ setuptools ]; 17 + 18 + doCheck = false; 19 + pythonImportsCheck = [ "clickhouse_cityhash" ]; 20 + 21 + meta = with lib; { 22 + description = "Python-bindings for CityHash, a fast non-cryptographic hash algorithm"; 23 + homepage = "https://github.com/xzkostyan/python-cityhash"; 24 + license = licenses.upl; 25 + maintainers = with maintainers; [ breakds ]; 26 + }; 27 + }
+48
pkgs/development/python-modules/clickhouse-driver/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , setuptools 5 + , pytz 6 + , tzlocal 7 + , clickhouse-cityhash 8 + , zstd 9 + , lz4 10 + , freezegun 11 + , mock 12 + , nose 13 + }: 14 + 15 + buildPythonPackage rec { 16 + pname = "clickhouse-driver"; 17 + version = "0.1.5"; 18 + 19 + src = fetchPypi { 20 + inherit pname version; 21 + sha256 = "1827cm5z2zd6mxn9alq54bbzw6vhz4a30a54vacqn7nz691qs1gd"; 22 + }; 23 + 24 + propagatedBuildInputs = [ 25 + setuptools 26 + pytz 27 + tzlocal 28 + clickhouse-cityhash 29 + zstd 30 + lz4 31 + ]; 32 + 33 + checkInputs = [ 34 + freezegun 35 + mock 36 + nose 37 + ]; 38 + 39 + doCheck = true; 40 + pythonImportsCheck = [ "clickhouse_driver" ]; 41 + 42 + meta = with lib; { 43 + description = "Python driver with native interface for ClickHouse"; 44 + homepage = "https://github.com/mymarilyn/clickhouse-driver"; 45 + license = licenses.mit; 46 + maintainers = with maintainers; [ breakds ]; 47 + }; 48 + }
+4
pkgs/top-level/python-packages.nix
··· 1215 1216 click-threading = callPackage ../development/python-modules/click-threading { }; 1217 1218 cliff = callPackage ../development/python-modules/cliff { }; 1219 1220 clifford = callPackage ../development/python-modules/clifford { };
··· 1215 1216 click-threading = callPackage ../development/python-modules/click-threading { }; 1217 1218 + clickhouse-cityhash = callPackage ../development/python-modules/clickhouse-cityhash {}; 1219 + 1220 + clickhouse-driver = callPackage ../development/python-modules/clickhouse-driver {}; 1221 + 1222 cliff = callPackage ../development/python-modules/cliff { }; 1223 1224 clifford = callPackage ../development/python-modules/clifford { };