diff --git a/python-overlay.nix b/python-overlay.nix index 3aec728..31d5c4a 100644 --- a/python-overlay.nix +++ b/python-overlay.nix @@ -18,14 +18,15 @@ final: prev: { email-reply-parser = pyFinal.callPackage ./python/email-reply-parser.nix {}; maxminddb-geolite2 = pyFinal.callPackage ./python/maxminddb-geolite2.nix {}; psycopg2-binary = pyFinal.callPackage ./python/psycopg2-binary.nix {}; + sql-metadata = pyFinal.callPackage ./python/sql-metadata.nix {}; traceback-with-variables = pyFinal.callPackage ./python/traceback-with-variables.nix {}; - fastapi = pyPrev.fastapi.overridePythonAttrs (oldAttrs: (rec { - propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ - pyPrev.pydantic-settings - pyPrev.pydantic-extra-types - ]; - })); + #fastapi = pyPrev.fastapi.overridePythonAttrs (oldAttrs: (rec { + # propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ + # pyPrev.pydantic-settings + # pyPrev.pydantic-extra-types + # ]; + #})); plaid-python = pyPrev.plaid-python.overridePythonAttrs (oldAttrs: (rec { version = "7.2.1"; diff --git a/python/frappe.nix b/python/frappe.nix index a36e516..f8ccf0f 100644 --- a/python/frappe.nix +++ b/python/frappe.nix @@ -68,6 +68,8 @@ , xlrd , zxcvbn , markdownify +, tomli +, sql-metadata # Integration dependencies , boto3 @@ -97,6 +99,38 @@ buildPythonPackage rec { nativeBuildInputs = [ pythonRelaxDepsHook flit-core ]; + pythonRelaxDeps = [ + "babel" + "pypdf" + "weasyprint" + "pydyf" + "bleach" + "cairocffi" + "chardet" + "cssutils" + "gunicorn" + "ipython" + "phonenumbers" + "pyopenssl" + "pydantic" + "pyotp" + "python-dateutil" + "pytz" + "rauth" + "redis" + "hiredis" + "requests" + "rq" + "sentry-sdk" + "markdownify" + "boto3" + "dropbox" + "google-api-python-client" + "google-auth-oauthlib" + "google-auth" + "posthog" + ]; + propagatedBuildInputs = [ babel click @@ -161,6 +195,8 @@ buildPythonPackage rec { xlrd zxcvbn markdownify + tomli + sql-metadata # integration dependencies boto3 diff --git a/python/sql-metadata.nix b/python/sql-metadata.nix new file mode 100644 index 0000000..4e1dec0 --- /dev/null +++ b/python/sql-metadata.nix @@ -0,0 +1,20 @@ +{ + buildPythonPackage, + fetchPypi, + poetry-core, + sqlparse, +}: +buildPythonPackage rec { + pname = "sql-metadata"; + version = "2.11.0"; + src = fetchPypi { + pname = "sql_metadata"; + inherit version; + sha256 = "sha256-8jtwjOVYIh8so3YOtKuFa0+AVAtc9RczrZeRO8VGhis="; + }; + format = "pyproject"; + propagatedBuildInputs = [ + poetry-core + sqlparse + ]; +}