erpnext-nix/python/frappe.nix

210 lines
2.9 KiB
Nix
Raw Normal View History

2023-05-20 21:36:21 +00:00
{ lib
, buildPythonPackage
, pythonRelaxDepsHook
2023-05-20 21:36:21 +00:00
, fetchFromGitHub
, flit-core
2023-05-18 14:50:31 +00:00
# Core dependencies
2023-05-20 21:36:21 +00:00
, babel
, click
, filelock
2024-01-06 16:15:26 +00:00
, filetype
2023-05-20 21:36:21 +00:00
, gitpython
, jinja2
, pillow
, pyjwt
, pymysql
2024-01-06 16:15:26 +00:00
, pypdf
2023-05-20 21:36:21 +00:00
, pypika
, pyqrcode
, pyyaml
, restrictedpython
, weasyprint
, werkzeug
, whoosh
, beautifulsoup4
, bleach-allowlist
, bleach
, cairocffi
, chardet
, croniter
, cryptography
, email-reply-parser
, git-url-parse
, gunicorn
, html5lib
, ipython
, ldap3
, markdown2
, markupsafe
, maxminddb-geolite2
, num2words
, oauthlib
, openpyxl
, passlib
, pdfkit
, phonenumbers
, premailer
, psutil
, psycopg2-binary
2024-01-06 16:15:26 +00:00
, pydantic
, pyopenssl
2023-05-20 21:36:21 +00:00
, pyotp
, python-dateutil
, pytz
, rauth
, redis
, hiredis
, requests-oauthlib
, requests
, rq
, rsa
, semantic-version
2024-01-06 16:15:26 +00:00
, sentry-sdk
2023-05-20 21:36:21 +00:00
, sqlparse
, tenacity
, terminaltables
, traceback-with-variables
, xlrd
, zxcvbn
, markdownify
, tomli
, sql-metadata
2023-05-18 14:50:31 +00:00
# Integration dependencies
2023-05-20 21:36:21 +00:00
, boto3
, dropbox
, google-api-python-client
, google-auth-oauthlib
, google-auth
, posthog
2023-05-18 13:57:22 +00:00
}:
let
pinData = import ../srcs/pin.nix;
inherit (pinData) frappeVersion;
inherit (pinData.hashes) frappeSrcHash;
in
2023-05-18 13:57:22 +00:00
buildPythonPackage rec {
pname = "frappe";
version = frappeVersion;
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${frappeVersion}";
sha256 = frappeSrcHash;
};
format = "pyproject";
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"
];
2023-05-18 14:50:31 +00:00
propagatedBuildInputs = [
babel
click
filelock
2024-01-06 16:15:26 +00:00
filetype
2023-05-18 14:50:31 +00:00
gitpython
jinja2
pillow
pyjwt
pymysql
2024-01-06 16:15:26 +00:00
pypdf
2023-05-18 14:50:31 +00:00
pypika
pyqrcode
pyyaml
restrictedpython
weasyprint
werkzeug
whoosh
beautifulsoup4
bleach-allowlist
bleach
cairocffi
chardet
croniter
cryptography
email-reply-parser
git-url-parse
gunicorn
html5lib
ipython
ldap3
markdown2
markupsafe
maxminddb-geolite2
num2words
oauthlib
openpyxl
passlib
pdfkit
phonenumbers
premailer
psutil
psycopg2-binary
2024-01-06 16:15:26 +00:00
pydantic
pyopenssl
2023-05-18 14:50:31 +00:00
pyotp
python-dateutil
pytz
rauth
redis
hiredis
requests-oauthlib
requests
rq
rsa
semantic-version
2024-01-06 16:15:26 +00:00
sentry-sdk
2023-05-18 14:50:31 +00:00
sqlparse
tenacity
terminaltables
traceback-with-variables
xlrd
zxcvbn
markdownify
tomli
sql-metadata
2023-05-18 14:50:31 +00:00
# integration dependencies
boto3
dropbox
google-api-python-client
google-auth-oauthlib
google-auth
posthog
];
2023-05-18 13:57:22 +00:00
}