forked from axeman/erpnext-nix
frappe 15.39.2 needs relaxed python deps,
add pkg for sql-metadata
This commit is contained in:
parent
75bb14ba70
commit
ae7a917ed9
|
@ -18,14 +18,15 @@ final: prev: {
|
||||||
email-reply-parser = pyFinal.callPackage ./python/email-reply-parser.nix {};
|
email-reply-parser = pyFinal.callPackage ./python/email-reply-parser.nix {};
|
||||||
maxminddb-geolite2 = pyFinal.callPackage ./python/maxminddb-geolite2.nix {};
|
maxminddb-geolite2 = pyFinal.callPackage ./python/maxminddb-geolite2.nix {};
|
||||||
psycopg2-binary = pyFinal.callPackage ./python/psycopg2-binary.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 {};
|
traceback-with-variables = pyFinal.callPackage ./python/traceback-with-variables.nix {};
|
||||||
|
|
||||||
fastapi = pyPrev.fastapi.overridePythonAttrs (oldAttrs: (rec {
|
#fastapi = pyPrev.fastapi.overridePythonAttrs (oldAttrs: (rec {
|
||||||
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [
|
# propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [
|
||||||
pyPrev.pydantic-settings
|
# pyPrev.pydantic-settings
|
||||||
pyPrev.pydantic-extra-types
|
# pyPrev.pydantic-extra-types
|
||||||
];
|
# ];
|
||||||
}));
|
#}));
|
||||||
|
|
||||||
plaid-python = pyPrev.plaid-python.overridePythonAttrs (oldAttrs: (rec {
|
plaid-python = pyPrev.plaid-python.overridePythonAttrs (oldAttrs: (rec {
|
||||||
version = "7.2.1";
|
version = "7.2.1";
|
||||||
|
|
|
@ -68,6 +68,8 @@
|
||||||
, xlrd
|
, xlrd
|
||||||
, zxcvbn
|
, zxcvbn
|
||||||
, markdownify
|
, markdownify
|
||||||
|
, tomli
|
||||||
|
, sql-metadata
|
||||||
|
|
||||||
# Integration dependencies
|
# Integration dependencies
|
||||||
, boto3
|
, boto3
|
||||||
|
@ -97,6 +99,38 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ pythonRelaxDepsHook flit-core ];
|
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 = [
|
propagatedBuildInputs = [
|
||||||
babel
|
babel
|
||||||
click
|
click
|
||||||
|
@ -161,6 +195,8 @@ buildPythonPackage rec {
|
||||||
xlrd
|
xlrd
|
||||||
zxcvbn
|
zxcvbn
|
||||||
markdownify
|
markdownify
|
||||||
|
tomli
|
||||||
|
sql-metadata
|
||||||
|
|
||||||
# integration dependencies
|
# integration dependencies
|
||||||
boto3
|
boto3
|
||||||
|
|
20
python/sql-metadata.nix
Normal file
20
python/sql-metadata.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue