From 1a5a844afd003d2cddb3da52aa8ad79c7064df09 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 28 Mar 2024 15:36:08 -0400 Subject: [PATCH] [create-pull-request] automated change (#386) Co-authored-by: mikealfare Co-authored-by: Mike Alfare <13974384+mikealfare@users.noreply.github.com> --- Aliases/dbt-snowflake@1.5 | 2 +- Formula/dbt-snowflake.rb | 36 ++-- Formula/dbt-snowflake@1.5.7.rb | 335 +++++++++++++++++++++++++++++++++ 3 files changed, 354 insertions(+), 19 deletions(-) create mode 100644 Formula/dbt-snowflake@1.5.7.rb diff --git a/Aliases/dbt-snowflake@1.5 b/Aliases/dbt-snowflake@1.5 index b0af19af..45f08043 120000 --- a/Aliases/dbt-snowflake@1.5 +++ b/Aliases/dbt-snowflake@1.5 @@ -1 +1 @@ -../Formula/dbt-snowflake@1.5.6.rb \ No newline at end of file +../Formula/dbt-snowflake@1.5.7.rb \ No newline at end of file diff --git a/Formula/dbt-snowflake.rb b/Formula/dbt-snowflake.rb index ff1d98d6..32ae8921 100644 --- a/Formula/dbt-snowflake.rb +++ b/Formula/dbt-snowflake.rb @@ -3,8 +3,8 @@ class DbtSnowflake < Formula desc "Snowflake adapter plugin for dbt" homepage "https://github.com/dbt-labs/dbt-snowflake" - url "https://files.pythonhosted.org/packages/09/c2/1a93f8d223a96133cfd241fb320f5c4f61d141531891fbb8938548bf0342/dbt-snowflake-1.5.6.tar.gz" - sha256 "66e263bcb228c5d34a79f0f730b17b4f36d5a5ba2dde2d41b2235719e8440afc" + url "https://files.pythonhosted.org/packages/31/a1/116dd19cc7248f48caab4e834efd58406e5c127dca69badcddb18159c430/dbt-snowflake-1.5.7.tar.gz" + sha256 "7c017eb717fb867ace35b74d3308c87b035a999a1975428ad17f0e9d292bcf3f" # license "" depends_on "rust" => :build @@ -61,8 +61,8 @@ class DbtSnowflake < Formula end resource "dbt-core" do - url "https://files.pythonhosted.org/packages/89/fe/dfb22f1740206461ab810132cba96b892f70b527c7500fd4c5cdeb530c16/dbt-core-1.5.10.tar.gz" - sha256 "e8f5ec2e0732be23103cee14fc7a0779bf058da68ed3106cfdf180d497d4af73" + url "https://files.pythonhosted.org/packages/2d/16/f9ba575821bbb3ad0487cf2b7c9bb63fb7234a55980638624294973a79ca/dbt-core-1.5.11.tar.gz" + sha256 "0dae9ec543fe4958cd11d729435a9228806e9d542982e92c7052c7cd2fd1f362" end resource "dbt-extractor" do @@ -71,8 +71,8 @@ class DbtSnowflake < Formula end resource "filelock" do - url "https://files.pythonhosted.org/packages/70/70/41905c80dcfe71b22fb06827b8eae65781783d4a14194bce79d16a013263/filelock-3.13.1.tar.gz" - sha256 "521f5f56c50f8426f5e03ad3b281b490a87ef15bc6c526f168290f0c7148d44e" + url "https://files.pythonhosted.org/packages/db/97/3f028f216da17ab0500550a6bb0f26bf39b07848348f63cce44b89829af9/filelock-3.13.3.tar.gz" + sha256 "a79895a25bbefdf55d1a2a0a80968f7dbb28edcd6d4234a0afb3f37ecde4b546" end resource "future" do @@ -91,8 +91,8 @@ class DbtSnowflake < Formula end resource "importlib-metadata" do - url "https://files.pythonhosted.org/packages/90/b4/206081fca69171b4dc1939e77b378a7b87021b0f43ce07439d49d8ac5c84/importlib_metadata-7.0.1.tar.gz" - sha256 "f238736bb06590ae52ac1fab06a3a9ef1d8dce2b7a35b5ab329371d6c8f5d2cc" + url "https://files.pythonhosted.org/packages/a0/fc/c4e6078d21fc4fa56300a241b87eae76766aa380a23fc450fc85bb7bf547/importlib_metadata-7.1.0.tar.gz" + sha256 "b78938b926ee8d5f020fc4772d487045805a55ddbad2ecf21c6d60938dc7fcd2" end resource "isodate" do @@ -161,8 +161,8 @@ class DbtSnowflake < Formula end resource "msgpack" do - url "https://files.pythonhosted.org/packages/c2/d5/5662032db1571110b5b51647aed4b56dfbd01bfae789fa566a2be1f385d1/msgpack-1.0.7.tar.gz" - sha256 "572efc93db7a4d27e404501975ca6d2d9775705c2d922390d878fcf768d92c87" + url "https://files.pythonhosted.org/packages/08/4c/17adf86a8fbb02c144c7569dc4919483c01a2ac270307e2d59e1ce394087/msgpack-1.0.8.tar.gz" + sha256 "95c02b0e27e706e48d0e5426d1710ca78e0f0628d6e89d5b5a5b91a5f12274f3" end resource "networkx" do # pinned to 2.8.0 @@ -171,8 +171,8 @@ class DbtSnowflake < Formula end resource "packaging" do - url "https://files.pythonhosted.org/packages/fb/2b/9b9c33ffed44ee921d0967086d653047286054117d584f1b1a7c22ceaf7b/packaging-23.2.tar.gz" - sha256 "048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5" + url "https://files.pythonhosted.org/packages/ee/b5/b43a27ac7472e1818c4bafd44430e69605baefe1f34440593e0332ec8b4d/packaging-24.0.tar.gz" + sha256 "eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9" end resource "parsedatetime" do @@ -206,8 +206,8 @@ class DbtSnowflake < Formula end resource "pyOpenSSL" do - url "https://files.pythonhosted.org/packages/eb/81/022190e5d21344f6110064f6f52bf0c3b9da86e9e5a64fc4a884856a577d/pyOpenSSL-24.0.0.tar.gz" - sha256 "6aa33039a93fffa4563e655b61d11364d01264be8ccb49906101e02a334530bf" + url "https://files.pythonhosted.org/packages/91/a8/cbeec652549e30103b9e6147ad433405fdd18807ac2d54e6dbb73184d8a1/pyOpenSSL-24.1.0.tar.gz" + sha256 "cabed4bfaa5df9f1a16c0ef64a0cb65318b5cd077a7eda7d6970131ca2f41a6f" end resource "python-dateutil" do @@ -236,8 +236,8 @@ class DbtSnowflake < Formula end resource "referencing" do - url "https://files.pythonhosted.org/packages/21/c5/b99dd501aa72b30a5a87d488d7aa76ec05bdf0e2c7439bc82deb9448dd9a/referencing-0.33.0.tar.gz" - sha256 "c775fedf74bc0f9189c2a3be1c12fd03e8c23f4d371dce795df44e06c5b412f7" + url "https://files.pythonhosted.org/packages/59/d7/48b862b8133da2e0ed091195028f0d45c4d0be0f7f23dbe046a767282f37/referencing-0.34.0.tar.gz" + sha256 "5773bd84ef41799a5a8ca72dc34590c041eb01bf9aa02632b4a973fb0181a844" end resource "requests" do @@ -301,8 +301,8 @@ class DbtSnowflake < Formula end resource "zipp" do - url "https://files.pythonhosted.org/packages/58/03/dd5ccf4e06dec9537ecba8fcc67bbd4ea48a2791773e469e73f94c3ba9a6/zipp-3.17.0.tar.gz" - sha256 "84e64a1c28cf7e91ed2078bb8cc8c259cb19b76942096c8d7b84947690cabaf0" + url "https://files.pythonhosted.org/packages/3e/ef/65da662da6f9991e87f058bc90b91a935ae655a16ae5514660d6460d1298/zipp-3.18.1.tar.gz" + sha256 "2884ed22e7d8961de1c9a05142eb69a247f120291bc0206a00a7642f09b5b715" end def install diff --git a/Formula/dbt-snowflake@1.5.7.rb b/Formula/dbt-snowflake@1.5.7.rb new file mode 100644 index 00000000..55b85376 --- /dev/null +++ b/Formula/dbt-snowflake@1.5.7.rb @@ -0,0 +1,335 @@ +class DbtSnowflakeAT157 < Formula + include Language::Python::Virtualenv + + desc "Snowflake adapter plugin for dbt" + homepage "https://github.com/dbt-labs/dbt-snowflake" + url "https://files.pythonhosted.org/packages/31/a1/116dd19cc7248f48caab4e834efd58406e5c127dca69badcddb18159c430/dbt-snowflake-1.5.7.tar.gz" + sha256 "7c017eb717fb867ace35b74d3308c87b035a999a1975428ad17f0e9d292bcf3f" + # license "" + + depends_on "rust" => :build + depends_on "python@3.9" + + resource "agate" do + url "https://files.pythonhosted.org/packages/8f/2c/597c335fd567648745856ce7f1a60d9ee5ff8197e6bfb16c77273343b55b/agate-1.7.0.tar.gz" + sha256 "a835a1069247b39b0c340e31eb56e1a95e79f679ad37512192118a5ea3336020" + end + + resource "asn1crypto" do + url "https://files.pythonhosted.org/packages/de/cf/d547feed25b5244fcb9392e288ff9fdc3280b10260362fc45d37a798a6ee/asn1crypto-1.5.1.tar.gz" + sha256 "13ae38502be632115abf8a24cbe5f4da52e3b5231990aff31123c805306ccb9c" + end + + resource "attrs" do + url "https://files.pythonhosted.org/packages/e3/fc/f800d51204003fa8ae392c4e8278f256206e7a919b708eef054f5f4b650d/attrs-23.2.0.tar.gz" + sha256 "935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30" + end + + resource "Babel" do + url "https://files.pythonhosted.org/packages/e2/80/cfbe44a9085d112e983282ee7ca4c00429bc4d1ce86ee5f4e60259ddff7f/Babel-2.14.0.tar.gz" + sha256 "6919867db036398ba21eb5c7a0f6b28ab8cbc3ae7a73a44ebe34ae74a4e7d363" + end + + resource "certifi" do + url "https://files.pythonhosted.org/packages/71/da/e94e26401b62acd6d91df2b52954aceb7f561743aa5ccc32152886c76c96/certifi-2024.2.2.tar.gz" + sha256 "0569859f95fc761b18b45ef421b1290a0f65f147e92a1e5eb3e635f9a5e4e66f" + end + + resource "cffi" do + url "https://files.pythonhosted.org/packages/68/ce/95b0bae7968c65473e1298efb042e10cafc7bafc14d9e4f154008241c91d/cffi-1.16.0.tar.gz" + sha256 "bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0" + end + + resource "charset-normalizer" do + url "https://files.pythonhosted.org/packages/63/09/c1bc53dab74b1816a00d8d030de5bf98f724c52c1635e07681d312f20be8/charset-normalizer-3.3.2.tar.gz" + sha256 "f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5" + end + + resource "click" do + url "https://files.pythonhosted.org/packages/96/d3/f04c7bfcf5c1862a2a5b845c6b2b360488cf47af55dfa79c98f6a6bf98b5/click-8.1.7.tar.gz" + sha256 "ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de" + end + + resource "colorama" do + url "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz" + sha256 "08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44" + end + + resource "cryptography" do # pinned to 38.0.4 + url "https://files.pythonhosted.org/packages/e3/3f/41186b1f2fd86a542d399175f6b8e43f82cd4dfa51235a0b030a042b811a/cryptography-38.0.4.tar.gz" + sha256 "175c1a818b87c9ac80bb7377f5520b7f31b3ef2a0004e2420319beadedb67290" + end + + resource "dbt-core" do + url "https://files.pythonhosted.org/packages/2d/16/f9ba575821bbb3ad0487cf2b7c9bb63fb7234a55980638624294973a79ca/dbt-core-1.5.11.tar.gz" + sha256 "0dae9ec543fe4958cd11d729435a9228806e9d542982e92c7052c7cd2fd1f362" + end + + resource "dbt-extractor" do + url "https://files.pythonhosted.org/packages/af/2e/a110b40212480fd02bff567ff84effea8b9937ccd6ebfad0f10a382183d2/dbt_extractor-0.4.1.tar.gz" + sha256 "75b1c665699ec0f1ffce1ba3d776f7dfce802156f22e70a7b9c8f0b4d7e80f42" + end + + resource "filelock" do + url "https://files.pythonhosted.org/packages/db/97/3f028f216da17ab0500550a6bb0f26bf39b07848348f63cce44b89829af9/filelock-3.13.3.tar.gz" + sha256 "a79895a25bbefdf55d1a2a0a80968f7dbb28edcd6d4234a0afb3f37ecde4b546" + end + + resource "future" do + url "https://files.pythonhosted.org/packages/a7/b2/4140c69c6a66432916b26158687e821ba631a4c9273c474343badf84d3ba/future-1.0.0.tar.gz" + sha256 "bd2968309307861edae1458a4f8a4f3598c03be43b97521076aebf5d94c07b05" + end + + resource "hologram" do + url "https://files.pythonhosted.org/packages/9f/0c/273e0dfadb033789faac3393cb52fb8dbf367b7f687443d0266f82923e60/hologram-0.0.16.tar.gz" + sha256 "1c2c921b4e575361623ea0e0d0aa5aee377b1a333cc6c6a879e213ed34583e55" + end + + resource "idna" do + url "https://files.pythonhosted.org/packages/bf/3f/ea4b9117521a1e9c50344b909be7886dd00a519552724809bb1f486986c2/idna-3.6.tar.gz" + sha256 "9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca" + end + + resource "importlib-metadata" do + url "https://files.pythonhosted.org/packages/a0/fc/c4e6078d21fc4fa56300a241b87eae76766aa380a23fc450fc85bb7bf547/importlib_metadata-7.1.0.tar.gz" + sha256 "b78938b926ee8d5f020fc4772d487045805a55ddbad2ecf21c6d60938dc7fcd2" + end + + resource "isodate" do + url "https://files.pythonhosted.org/packages/db/7a/c0a56c7d56c7fa723988f122fa1f1ccf8c5c4ccc48efad0d214b49e5b1af/isodate-0.6.1.tar.gz" + sha256 "48c5881de7e8b0a0d648cb024c8062dc84e7b840ed81e864c7614fd3c127bde9" + end + + resource "jaraco.classes" do + url "https://files.pythonhosted.org/packages/a5/8a/ed955184b2ef9c1eef3aa800557051c7354e5f40a9efc9a46e38c3e6d237/jaraco.classes-3.3.1.tar.gz" + sha256 "cb28a5ebda8bc47d8c8015307d93163464f9f2b91ab4006e09ff0ce07e8bfb30" + end + + resource "jeepney" do + url "https://files.pythonhosted.org/packages/d6/f4/154cf374c2daf2020e05c3c6a03c91348d59b23c5366e968feb198306fdf/jeepney-0.8.0.tar.gz" + sha256 "5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806" + end + + resource "Jinja2" do + url "https://files.pythonhosted.org/packages/b2/5e/3a21abf3cd467d7876045335e681d276ac32492febe6d98ad89562d1a7e1/Jinja2-3.1.3.tar.gz" + sha256 "ac8bd6544d4bb2c9792bf3a159e80bba8fda7f07e81bc3aed565432d5925ba90" + end + + resource "jsonschema" do + url "https://files.pythonhosted.org/packages/4d/c5/3f6165d3df419ea7b0990b3abed4ff348946a826caf0e7c990b65ff7b9be/jsonschema-4.21.1.tar.gz" + sha256 "85727c00279f5fa6bedbe6238d2aa6403bedd8b4864ab11207d07df3cc1b2ee5" + end + + resource "jsonschema-specifications" do + url "https://files.pythonhosted.org/packages/f8/b9/cc0cc592e7c195fb8a650c1d5990b10175cf13b4c97465c72ec841de9e4b/jsonschema_specifications-2023.12.1.tar.gz" + sha256 "48a76787b3e70f5ed53f1160d2b81f586e4ca6d1548c5de7085d1682674764cc" + end + + resource "keyring" do + url "https://files.pythonhosted.org/packages/ae/6c/bd2cfc6c708ce7009bdb48c85bb8cad225f5638095ecc8f49f15e8e1f35e/keyring-24.3.1.tar.gz" + sha256 "c3327b6ffafc0e8befbdb597cacdb4928ffe5c1212f7645f186e6d9957a898db" + end + + resource "leather" do + url "https://files.pythonhosted.org/packages/ed/6e/48a05e2f7f62a616d675cfee182643f2dd8023bf7429aa326f4bebd629c8/leather-0.4.0.tar.gz" + sha256 "f964bec2086f3153a6c16e707f20cb718f811f57af116075f4c0f4805c608b95" + end + + resource "Logbook" do + url "https://files.pythonhosted.org/packages/2f/d9/16ac346f7c0102835814cc9e5b684aaadea101560bb932a2403bd26b2320/Logbook-1.5.3.tar.gz" + sha256 "66f454ada0f56eae43066f604a222b09893f98c1adc18df169710761b8f32fe8" + end + + resource "MarkupSafe" do + url "https://files.pythonhosted.org/packages/87/5b/aae44c6655f3801e81aa3eef09dbbf012431987ba564d7231722f68df02d/MarkupSafe-2.1.5.tar.gz" + sha256 "d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b" + end + + resource "mashumaro" do + url "https://files.pythonhosted.org/packages/7e/c6/e88452c75e9ee52c622bbb05002efc6caf1809cc0fac76505f57a909d244/mashumaro-3.6.tar.gz" + sha256 "ceb3de53029219bbbb0385ca600b59348dcd14e0c68523986c6d51889ad338f5" + end + + resource "minimal-snowplow-tracker" do + url "https://files.pythonhosted.org/packages/e4/9f/004f810169a48ed5c520279d98327e7793b6491f09d42cb2c5636c994f34/minimal-snowplow-tracker-0.0.2.tar.gz" + sha256 "acabf7572db0e7f5cbf6983d495eef54081f71be392330eb3aadb9ccb39daaa4" + end + + resource "more-itertools" do + url "https://files.pythonhosted.org/packages/df/ad/7905a7fd46ffb61d976133a4f47799388209e73cbc8c1253593335da88b4/more-itertools-10.2.0.tar.gz" + sha256 "8fccb480c43d3e99a00087634c06dd02b0d50fbf088b380de5a41a015ec239e1" + end + + resource "msgpack" do + url "https://files.pythonhosted.org/packages/08/4c/17adf86a8fbb02c144c7569dc4919483c01a2ac270307e2d59e1ce394087/msgpack-1.0.8.tar.gz" + sha256 "95c02b0e27e706e48d0e5426d1710ca78e0f0628d6e89d5b5a5b91a5f12274f3" + end + + resource "networkx" do # pinned to 2.8.0 + url "https://files.pythonhosted.org/packages/3f/5e/5e9ae193c6384bd47aae5bc9bd2c48db7115f483b0ff9fef7d263e3dbb09/networkx-2.8.tar.gz" + sha256 "4a52cf66aed221955420e11b3e2e05ca44196b4829aab9576d4d439212b0a14f" + end + + resource "packaging" do + url "https://files.pythonhosted.org/packages/ee/b5/b43a27ac7472e1818c4bafd44430e69605baefe1f34440593e0332ec8b4d/packaging-24.0.tar.gz" + sha256 "eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9" + end + + resource "parsedatetime" do + url "https://files.pythonhosted.org/packages/e3/b3/02385db13f1f25f04ad7895f35e9fe3960a4b9d53112775a6f7d63f264b6/parsedatetime-2.4.tar.gz" + sha256 "3d817c58fb9570d1eec1dd46fa9448cd644eeed4fb612684b02dfda3a79cb84b" + end + + resource "pathspec" do + url "https://files.pythonhosted.org/packages/a0/2a/bd167cdf116d4f3539caaa4c332752aac0b3a0cc0174cdb302ee68933e81/pathspec-0.11.2.tar.gz" + sha256 "e0d8d0ac2f12da61956eb2306b69f9469b42f4deb0f3cb6ed47b9cce9996ced3" + end + + resource "platformdirs" do + url "https://files.pythonhosted.org/packages/d3/e3/aa14d6b2c379fbb005993514988d956f1b9fdccd9cbe78ec0dbe5fb79bf5/platformdirs-3.11.0.tar.gz" + sha256 "cf8ee52a3afdb965072dcc652433e0c7e3e40cf5ea1477cd4b3b1d2eb75495b3" + end + + resource "protobuf" do + url "https://files.pythonhosted.org/packages/5e/d8/65adb47d921ce828ba319d6587aa8758da022de509c3862a70177a958844/protobuf-4.25.3.tar.gz" + sha256 "25b5d0b42fd000320bd7830b349e3b696435f3b329810427a6bcce6a5492cc5c" + end + + resource "pycparser" do + url "https://files.pythonhosted.org/packages/5e/0b/95d387f5f4433cb0f53ff7ad859bd2c6051051cebbb564f139a999ab46de/pycparser-2.21.tar.gz" + sha256 "e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206" + end + + resource "PyJWT" do + url "https://files.pythonhosted.org/packages/30/72/8259b2bccfe4673330cea843ab23f86858a419d8f1493f66d413a76c7e3b/PyJWT-2.8.0.tar.gz" + sha256 "57e28d156e3d5c10088e0c68abb90bfac3df82b40a71bd0daa20c65ccd5c23de" + end + + resource "pyOpenSSL" do + url "https://files.pythonhosted.org/packages/91/a8/cbeec652549e30103b9e6147ad433405fdd18807ac2d54e6dbb73184d8a1/pyOpenSSL-24.1.0.tar.gz" + sha256 "cabed4bfaa5df9f1a16c0ef64a0cb65318b5cd077a7eda7d6970131ca2f41a6f" + end + + resource "python-dateutil" do + url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz" + sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86" + end + + resource "python-slugify" do + url "https://files.pythonhosted.org/packages/87/c7/5e1547c44e31da50a460df93af11a535ace568ef89d7a811069ead340c4a/python-slugify-8.0.4.tar.gz" + sha256 "59202371d1d05b54a9e7720c5e038f928f45daaffe41dd10822f3907b937c856" + end + + resource "pytimeparse" do + url "https://files.pythonhosted.org/packages/37/5d/231f5f33c81e09682708fb323f9e4041408d8223e2f0fb9742843328778f/pytimeparse-1.1.8.tar.gz" + sha256 "e86136477be924d7e670646a98561957e8ca7308d44841e21f5ddea757556a0a" + end + + resource "pytz" do + url "https://files.pythonhosted.org/packages/90/26/9f1f00a5d021fff16dee3de13d43e5e978f3d58928e129c3a62cf7eb9738/pytz-2024.1.tar.gz" + sha256 "2a29735ea9c18baf14b448846bde5a48030ed267578472d8955cd0e7443a9812" + end + + resource "PyYAML" do + url "https://files.pythonhosted.org/packages/cd/e5/af35f7ea75cf72f2cd079c95ee16797de7cd71f29ea7c68ae5ce7be1eda0/PyYAML-6.0.1.tar.gz" + sha256 "bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43" + end + + resource "referencing" do + url "https://files.pythonhosted.org/packages/59/d7/48b862b8133da2e0ed091195028f0d45c4d0be0f7f23dbe046a767282f37/referencing-0.34.0.tar.gz" + sha256 "5773bd84ef41799a5a8ca72dc34590c041eb01bf9aa02632b4a973fb0181a844" + end + + resource "requests" do + url "https://files.pythonhosted.org/packages/9d/be/10918a2eac4ae9f02f6cfe6414b7a155ccd8f7f9d4380d62fd5b955065c3/requests-2.31.0.tar.gz" + sha256 "942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1" + end + + resource "rpds-py" do + url "https://files.pythonhosted.org/packages/55/ba/ce7b9f0fc5323f20ffdf85f682e51bee8dc03e9b54503939ebb63d1d0d5e/rpds_py-0.18.0.tar.gz" + sha256 "42821446ee7a76f5d9f71f9e33a4fb2ffd724bb3e7f93386150b61a43115788d" + end + + resource "SecretStorage" do + url "https://files.pythonhosted.org/packages/53/a4/f48c9d79cb507ed1373477dbceaba7401fd8a23af63b837fa61f1dcd3691/SecretStorage-3.3.3.tar.gz" + sha256 "2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77" + end + + resource "six" do + url "https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz" + sha256 "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926" + end + + resource "snowflake-connector-python" do + url "https://files.pythonhosted.org/packages/a4/e5/a83810e0169cf151417b7297ab2758b8dcda8f470331c9b888c46e8b021a/snowflake-connector-python-3.7.1.tar.gz" + sha256 "dc6982f653860edef1614a3047a16bcb07e22775e6e090808bbf4f7629c4191d" + end + + resource "sortedcontainers" do + url "https://files.pythonhosted.org/packages/e8/c4/ba2f8066cceb6f23394729afe52f3bf7adec04bf9ed2c820b39e19299111/sortedcontainers-2.4.0.tar.gz" + sha256 "25caa5a06cc30b6b83d11423433f65d1f9d76c4c6a0c90e3379eaa43b9bfdb88" + end + + resource "sqlparse" do + url "https://files.pythonhosted.org/packages/65/16/10f170ec641ed852611b6c9441b23d10b5702ab5288371feab3d36de2574/sqlparse-0.4.4.tar.gz" + sha256 "d446183e84b8349fa3061f0fe7f06ca94ba65b426946ffebe6e3e8295332420c" + end + + resource "text-unidecode" do + url "https://files.pythonhosted.org/packages/ab/e2/e9a00f0ccb71718418230718b3d900e71a5d16e701a3dae079a21e9cd8f8/text-unidecode-1.3.tar.gz" + sha256 "bad6603bb14d279193107714b288be206cac565dfa49aa5b105294dd5c4aab93" + end + + resource "tomlkit" do + url "https://files.pythonhosted.org/packages/7d/49/4c0764898ee67618996148bdba4534a422c5e698b4dbf4001f7c6f930797/tomlkit-0.12.4.tar.gz" + sha256 "7ca1cfc12232806517a8515047ba66a19369e71edf2439d0f5824f91032b6cc3" + end + + resource "typing-extensions" do + url "https://files.pythonhosted.org/packages/16/3a/0d26ce356c7465a19c9ea8814b960f8a36c3b0d07c323176620b7b483e44/typing_extensions-4.10.0.tar.gz" + sha256 "b0abd7c89e8fb96f98db18d86106ff1d90ab692004eb746cf6eda2682f91b3cb" + end + + resource "urllib3" do + url "https://files.pythonhosted.org/packages/7a/50/7fd50a27caa0652cd4caf224aa87741ea41d3265ad13f010886167cfcc79/urllib3-2.2.1.tar.gz" + sha256 "d0570876c61ab9e520d776c38acbbb5b05a776d3f9ff98a5c8fd5162a444cf19" + end + + resource "Werkzeug" do + url "https://files.pythonhosted.org/packages/3d/4b/d746f1000782c89d6c97df9df43ba8f4d126038608843d3560ae88d201b5/werkzeug-2.3.8.tar.gz" + sha256 "554b257c74bbeb7a0d254160a4f8ffe185243f52a52035060b761ca62d977f03" + end + + resource "zipp" do + url "https://files.pythonhosted.org/packages/3e/ef/65da662da6f9991e87f058bc90b91a935ae655a16ae5514660d6460d1298/zipp-3.18.1.tar.gz" + sha256 "2884ed22e7d8961de1c9a05142eb69a247f120291bc0206a00a7642f09b5b715" + end + + def install + ENV["CARGO_NET_GIT_FETCH_WITH_CLI"] = "true" + venv = virtualenv_create(libexec, "python3", system_site_packages: false, without_pip: false) + venv.instance_variable_get(:@formula).system venv.instance_variable_get(:@venv_root)/"bin/python", + "-m", "pip", "install", "pip==22.3.1" + resources.each do |r| + if r.name == "snowflake-connector-python" + # workaround for installing `snowflake-connector-python` + # package w/o build-system deps (e.g. pyarrow) + # adds the `--no-use-pep517` parameter + r.stage do + venv.instance_variable_get(:@formula).system venv.instance_variable_get(:@venv_root)/"bin/pip", "install", + "-v", "--no-deps", "--no-binary", ":all:", "--ignore-installed", "--no-use-pep517", Pathname.pwd + end + else + venv.pip_install r + end + end + + venv.pip_install_and_link buildpath + + bin.install_symlink "#{libexec}/bin/dbt" => "dbt" + end + + test do + false + end +end