diff --git a/pkgs/development/python-modules/snowflake-connector-python/default.nix b/pkgs/development/python-modules/snowflake-connector-python/default.nix new file mode 100644 index 000000000000..eb8be17797f3 --- /dev/null +++ b/pkgs/development/python-modules/snowflake-connector-python/default.nix @@ -0,0 +1,65 @@ +{ buildPythonPackage +, asn1crypto +, azure-storage-blob +, boto3 +, certifi +, cffi +, fetchPypi +, future +, idna +, ijson +, isPy3k +, lib +, oscrypto +, pyarrow +, pyasn1-modules +, pycryptodomex +, pyjwt +, pyopenssl +, pytz +, requests +, six +, urllib3 +}: + +buildPythonPackage rec { + pname = "snowflake-connector-python"; + version = "2.1.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "06061d59lapqrlg3gzdk4bi3v9c3q5zxfs0if5v2chg1f2l80ncr"; + }; + + propagatedBuildInputs = [ + azure-storage-blob + asn1crypto + boto3 + certifi + cffi + future + idna + ijson + oscrypto + pycryptodomex + pyjwt + pyopenssl + pytz + requests + six + ] ++ lib.optionals (!isPy3k) [ + pyarrow + pyasn1-modules + urllib3 + ]; + + # tests are not working + # XXX: fix the tests + doCheck = false; + + meta = with lib; { + description = "Snowflake Connector for Python"; + homepage = "https://www.snowflake.com/"; + license = licenses.asl20; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 31645f26d61f..c8f4eb42da0c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5311,6 +5311,8 @@ in { slimit = callPackage ../development/python-modules/slimit { }; + snowflake-connector-python = callPackage ../development/python-modules/snowflake-connector-python { }; + snowballstemmer = callPackage ../development/python-modules/snowballstemmer { }; snitun = callPackage ../development/python-modules/snitun { };