frappe 15.39.2 needs relaxed python deps,

add pkg for sql-metadata
This commit is contained in:
teutat3s 2024-09-19 13:30:30 +02:00
parent 75bb14ba70
commit ae7a917ed9
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
3 changed files with 63 additions and 6 deletions

View file

@ -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";

View file

@ -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

20
python/sql-metadata.nix Normal file
View file

@ -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
];
}