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