This commit is contained in:
Akshay Mankar 2023-05-18 16:50:31 +02:00
parent f9289d49f4
commit 528fcc0fea
Signed by untrusted user: axeman
GPG key ID: CA08F3AB62369B89
17 changed files with 378 additions and 2 deletions

13
python/bleach.nix Normal file
View file

@ -0,0 +1,13 @@
{
buildPythonPackage,
fetchPypi,
}:
buildPythonPackage rec {
pname = "bleach";
version = "3.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-MGSDpal5VHQWCtV/zj3dG1BVHpge7Y4VpYLTTO8oqvo=";
};
propagatedBuildInputs = [];
}

13
python/cairocffi.nix Normal file
View file

@ -0,0 +1,13 @@
{
buildPythonPackage,
fetchPypi,
}:
buildPythonPackage rec {
pname = "cairocffi";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-mpebUAxkyBef7ChvM36P5kTsovLNBYYM4LYtJfIuoUA=";
};
propagatedBuildInputs = [];
}

View file

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

View file

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

13
python/git-url-parse.nix Normal file
View file

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

View file

@ -0,0 +1,13 @@
{
buildPythonPackage,
fetchPypi,
}:
buildPythonPackage rec {
pname = "maxminddb-geolite2";
version = "2018.703";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-K9EYxVZ/OoMj1sXaI6bm1Sz8Cc2Zh7VOtxLPYAGpbgM=";
};
propagatedBuildInputs = [];
}

13
python/phonenumbers.nix Normal file
View file

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

13
python/posthog.nix Normal file
View file

@ -0,0 +1,13 @@
{
buildPythonPackage,
fetchPypi,
}:
buildPythonPackage rec {
pname = "posthog";
version = "3.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-V9J5H/V1LOVroPm7iHb688qSCPHCxs6utaJQTDRJN2c=";
};
propagatedBuildInputs = [];
}

View file

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

22
python/pymysql.nix Normal file
View file

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

13
python/pypdf2.nix Normal file
View file

@ -0,0 +1,13 @@
{
buildPythonPackage,
fetchPypi,
}:
buildPythonPackage rec {
pname = "pypdf2";
version = "2.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "";
};
propagatedBuildInputs = [];
}

14
python/pypika.nix Normal file
View file

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

16
python/pypng.nix Normal file
View file

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

13
python/pytz.nix Normal file
View file

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

13
python/rauth.nix Normal file
View file

@ -0,0 +1,13 @@
{
buildPythonPackage,
fetchPypi,
}:
buildPythonPackage rec {
pname = "rauth";
version = "0.7.3";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-UkzbwcKFYOrPyanUDFlSXrjQD98H+62GEH6iRBFHewo=";
};
propagatedBuildInputs = [];
}

View file

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

14
python/weasyprint.nix Normal file
View file

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