diff --git a/python/bleach.nix b/python/bleach.nix new file mode 100644 index 0000000..d0516e0 --- /dev/null +++ b/python/bleach.nix @@ -0,0 +1,13 @@ +{ + buildPythonPackage, + fetchPypi, +}: +buildPythonPackage rec { + pname = "bleach"; + version = "3.3.1"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-MGSDpal5VHQWCtV/zj3dG1BVHpge7Y4VpYLTTO8oqvo="; + }; + propagatedBuildInputs = []; +} diff --git a/python/cairocffi.nix b/python/cairocffi.nix new file mode 100644 index 0000000..93dada4 --- /dev/null +++ b/python/cairocffi.nix @@ -0,0 +1,13 @@ +{ + buildPythonPackage, + fetchPypi, +}: +buildPythonPackage rec { + pname = "cairocffi"; + version = "1.2.0"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-mpebUAxkyBef7ChvM36P5kTsovLNBYYM4LYtJfIuoUA="; + }; + propagatedBuildInputs = []; +} diff --git a/python/email-reply-parser.nix b/python/email-reply-parser.nix new file mode 100644 index 0000000..bf465c6 --- /dev/null +++ b/python/email-reply-parser.nix @@ -0,0 +1,14 @@ +{ + buildPythonPackage, + fetchPypi, +}: +buildPythonPackage rec { + pname = "email-reply-parser"; + version = "0.5.12"; + src = fetchPypi { + pname = "email_reply_parser"; + inherit version; + sha256 = "sha256-nb8+ymmZCTIjTwnn9QqnN1ZXT8H4jojDJP7Bp0HuanQ="; + }; + propagatedBuildInputs = []; +} diff --git a/python/frappe.nix b/python/frappe.nix index a196c53..38de8e1 100644 --- a/python/frappe.nix +++ b/python/frappe.nix @@ -1,7 +1,83 @@ { buildPythonPackage, fetchPypi, - fetchFromGitHub + fetchFromGitHub, + + # core dependencies + babel, + click, + filelock, + gitpython, + jinja2, + pillow, + pyjwt, + pymysql, + pypdf2, + pypika, + pyqrcode, + pyyaml, + restrictedpython, + weasyprint, + werkzeug, + whoosh, + beautifulsoup4, + bleach-allowlist, + bleach, + cairocffi, + chardet, + croniter, + cryptography, + email-reply-parser, + git-url-parse, + gitdb, + gunicorn, + html5lib, + ipython, + ldap3, + markdown2, + markupsafe, + maxminddb-geolite2, + num2words, + oauthlib, + openpyxl, + passlib, + pdfkit, + phonenumbers, + premailer, + psutil, + psycopg2-binary, + pyasn1, + pyopenssl, + pycryptodome, + pyotp, + pypng, + python-dateutil, + pytz, + rauth, + redis, + hiredis, + requests-oauthlib, + requests, + rq, + rsa, + semantic-version, + sqlparse, + tenacity, + terminaltables, + traceback-with-variables, + urllib3, + xlrd, + zxcvbn, + markdownify, + + # integration dependencies + boto3, + dropbox, + google-api-python-client, + google-auth-httplib2, + google-auth-oauthlib, + google-auth, + posthog, }: buildPythonPackage rec { pname = "frappe"; @@ -13,5 +89,80 @@ buildPythonPackage rec { rev = "38708ba7c1e3eb0efd74d2876b79f6b17d8818dc"; sha256 = "sha256-eee6IS/Ep/DSDCPdnyrqBea/ag0kNnN5Id3YQMNz5js="; }; - propagatedBuildInputs = []; + propagatedBuildInputs = [ + babel + click + filelock + gitpython + jinja2 + pillow + pyjwt + pymysql + pypdf2 + pypika + pyqrcode + pyyaml + restrictedpython + weasyprint + werkzeug + whoosh + beautifulsoup4 + bleach-allowlist + bleach + cairocffi + chardet + croniter + cryptography + email-reply-parser + git-url-parse + gitdb + gunicorn + html5lib + ipython + ldap3 + markdown2 + markupsafe + maxminddb-geolite2 + num2words + oauthlib + openpyxl + passlib + pdfkit + phonenumbers + premailer + psutil + psycopg2-binary + pyasn1 + pyopenssl + pycryptodome + pyotp + pypng + python-dateutil + pytz + rauth + redis + hiredis + requests-oauthlib + requests + rq + rsa + semantic-version + sqlparse + tenacity + terminaltables + traceback-with-variables + urllib3 + xlrd + zxcvbn + markdownify + + # integration dependencies + boto3 + dropbox + google-api-python-client + google-auth-httplib2 + google-auth-oauthlib + google-auth + posthog + ]; } diff --git a/python/git-url-parse.nix b/python/git-url-parse.nix new file mode 100644 index 0000000..49a69d2 --- /dev/null +++ b/python/git-url-parse.nix @@ -0,0 +1,13 @@ +{ + buildPythonPackage, + fetchPypi, +}: +buildPythonPackage rec { + pname = "git-url-parse"; + version = "1.2.2"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-e19OOusdaTr+7mejvUrAY/cgbC6ORuVZ8NoNqYRF8Rc="; + }; + propagatedBuildInputs = []; +} diff --git a/python/maxminddb-geolite2.nix b/python/maxminddb-geolite2.nix new file mode 100644 index 0000000..573d0d6 --- /dev/null +++ b/python/maxminddb-geolite2.nix @@ -0,0 +1,13 @@ +{ + buildPythonPackage, + fetchPypi, +}: +buildPythonPackage rec { + pname = "maxminddb-geolite2"; + version = "2018.703"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-K9EYxVZ/OoMj1sXaI6bm1Sz8Cc2Zh7VOtxLPYAGpbgM="; + }; + propagatedBuildInputs = []; +} diff --git a/python/phonenumbers.nix b/python/phonenumbers.nix new file mode 100644 index 0000000..c8cd814 --- /dev/null +++ b/python/phonenumbers.nix @@ -0,0 +1,13 @@ +{ + buildPythonPackage, + fetchPypi, +}: +buildPythonPackage rec { + pname = "phonenumbers"; + version = "8.12.40"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-APKVWkVrRY+barDSQykEnD5zWMRN/Bl5/kkIztQPHrg="; + }; + propagatedBuildInputs = []; +} diff --git a/python/posthog.nix b/python/posthog.nix new file mode 100644 index 0000000..ac0aac5 --- /dev/null +++ b/python/posthog.nix @@ -0,0 +1,13 @@ +{ + buildPythonPackage, + fetchPypi, +}: +buildPythonPackage rec { + pname = "posthog"; + version = "3.0.1"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-V9J5H/V1LOVroPm7iHb688qSCPHCxs6utaJQTDRJN2c="; + }; + propagatedBuildInputs = []; +} diff --git a/python/psycopg2-binary.nix b/python/psycopg2-binary.nix new file mode 100644 index 0000000..316e651 --- /dev/null +++ b/python/psycopg2-binary.nix @@ -0,0 +1,15 @@ +{ + buildPythonPackage, + fetchPypi, + postgresql +}: +buildPythonPackage rec { + pname = "psycopg2-binary"; + version = "2.9.6"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-H2Tc+49uDAFMf1XlHJdZ8CT3DqVy+97xI/hTGMKXlHw="; + }; + nativeBuildInputs = [postgresql]; + propagatedBuildInputs = []; +} diff --git a/python/pymysql.nix b/python/pymysql.nix new file mode 100644 index 0000000..78214f0 --- /dev/null +++ b/python/pymysql.nix @@ -0,0 +1,22 @@ +{ + buildPythonPackage, + fetchPypi, + + cryptography, + setuptools +}: +buildPythonPackage rec { + pname = "pymysql"; + version = "1.0.3"; + format = "pyproject"; + src = fetchPypi { + pname = "PyMySQL"; + inherit version; + sha256 = "sha256-PdqUPvNpQGinXWnQcXVdvsrO4a35ofxbIGgw0rZ9Jeg="; + }; + buildInputs = [setuptools]; + propagatedBuildInputs = [cryptography]; + + # Wants to connect to MySQL + doCheck = false; +} diff --git a/python/pypdf2.nix b/python/pypdf2.nix new file mode 100644 index 0000000..a0178f6 --- /dev/null +++ b/python/pypdf2.nix @@ -0,0 +1,13 @@ +{ + buildPythonPackage, + fetchPypi, +}: +buildPythonPackage rec { + pname = "pypdf2"; + version = "2.1.1"; + src = fetchPypi { + inherit pname version; + sha256 = ""; + }; + propagatedBuildInputs = []; +} diff --git a/python/pypika.nix b/python/pypika.nix new file mode 100644 index 0000000..5d5d5d7 --- /dev/null +++ b/python/pypika.nix @@ -0,0 +1,14 @@ +{ + buildPythonPackage, + fetchPypi, +}: +buildPythonPackage rec { + pname = "pypika"; + version = "0.48.9"; + src = fetchPypi { + pname = "PyPika"; + inherit version; + sha256 = "sha256-g4g2phdH58g4DNG3/2OGlLenM1NF0PVZsEss2DKtU3g="; + }; + propagatedBuildInputs = []; +} diff --git a/python/pypng.nix b/python/pypng.nix new file mode 100644 index 0000000..d5a98a9 --- /dev/null +++ b/python/pypng.nix @@ -0,0 +1,16 @@ +{ + buildPythonPackage, + fetchPypi, + setuptools +}: +buildPythonPackage rec { + pname = "pypng"; + version = "0.20220715.0"; + format = "pyproject"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-c5xDO6lvB4MV3lTA25da7lN8vD4dCuTtmqsMoeQn4sE="; + }; + buildInputs = [setuptools]; + propagatedBuildInputs = []; +} diff --git a/python/pytz.nix b/python/pytz.nix new file mode 100644 index 0000000..4ba98e6 --- /dev/null +++ b/python/pytz.nix @@ -0,0 +1,13 @@ +{ + buildPythonPackage, + fetchPypi, +}: +buildPythonPackage rec { + pname = "pytz"; + version = "2022.1"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-HnYOL+aoFjvAs9mhnE+ENCr6Cir/6/qoSwG5eKAuyqc="; + }; + propagatedBuildInputs = []; +} diff --git a/python/rauth.nix b/python/rauth.nix new file mode 100644 index 0000000..69ed094 --- /dev/null +++ b/python/rauth.nix @@ -0,0 +1,13 @@ +{ + buildPythonPackage, + fetchPypi, +}: +buildPythonPackage rec { + pname = "rauth"; + version = "0.7.3"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-UkzbwcKFYOrPyanUDFlSXrjQD98H+62GEH6iRBFHewo="; + }; + propagatedBuildInputs = []; +} diff --git a/python/traceback-with-variables.nix b/python/traceback-with-variables.nix new file mode 100644 index 0000000..bdbc6c2 --- /dev/null +++ b/python/traceback-with-variables.nix @@ -0,0 +1,13 @@ +{ + buildPythonPackage, + fetchPypi, +}: +buildPythonPackage rec { + pname = "traceback-with-variables"; + version = "2.0.4"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-owx5t8IG+yVZZ/P10SXOEUs9rk/ZLSaPkB3TXuI/nMA="; + }; + propagatedBuildInputs = []; +} diff --git a/python/weasyprint.nix b/python/weasyprint.nix new file mode 100644 index 0000000..e86c4fc --- /dev/null +++ b/python/weasyprint.nix @@ -0,0 +1,14 @@ +{ + buildPythonPackage, + fetchPypi, +}: +buildPythonPackage rec { + pname = "weasyprint"; + version = "52.5"; + src = fetchPypi { + pname = "WeasyPrint"; + inherit version; + sha256 = "sha256-s36gLXXKBLq9e+ytc0FCa+MyrlYNjwLWZL+h6a+xhIE="; + }; + propagatedBuildInputs = []; +}