1{
2 lib,
3 buildPythonPackage,
4 pydantic,
5 python-dateutil,
6 requests,
7 snowflake-connector-python,
8 pyyaml,
9 urllib3,
10 fetchPypi,
11 pythonOlder,
12 hatchling,
13}:
14
15buildPythonPackage rec {
16 pname = "snowflake-core";
17 version = "1.7.0";
18 pyproject = true;
19
20 disabled = pythonOlder "3.9";
21
22 src = fetchPypi {
23 pname = "snowflake_core";
24 inherit version;
25 hash = "sha256-hlWpTCEa4E0dgD28h2JJ3m0/gCHMVzjWia6oQtG2an8=";
26 };
27
28 build-system = [ hatchling ];
29
30 dependencies = [
31 pydantic
32 python-dateutil
33 pyyaml
34 requests
35 snowflake-connector-python
36 urllib3
37 ];
38
39 pythonRelaxDeps = [
40 "pyopenssl"
41 ];
42
43 # Tests require access to Snowflake
44 doCheck = false;
45
46 pythonImportsCheck = [
47 "snowflake.core"
48 ];
49
50 meta = {
51 description = "Subpackage providing Python access to Snowflake entity metadata";
52 homepage = "https://pypi.org/project/snowflake.core";
53 license = lib.licenses.asl20;
54 maintainers = [ lib.maintainers.vtimofeenko ];
55 };
56}