-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
pgadmin4: init at 5.4 #128986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pgadmin4: init at 5.4 #128986
Changes from all commits
b09d6bc
5065f18
b90fcde
ecfae0f
47ebf4c
1ead877
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,38 @@ | ||||
| { lib | ||||
| , buildPythonPackage | ||||
| , fetchPypi | ||||
| , pythonAtLeast | ||||
| , flask | ||||
| , pytest-runner | ||||
| }: | ||||
|
|
||||
| buildPythonPackage rec { | ||||
| pname = "Flask-Gravatar"; | ||||
| version = "0.5.0"; | ||||
|
|
||||
| src = fetchPypi { | ||||
| inherit pname version; | ||||
| sha256 = "YGZfMcLGEokdto/4Aek+06CIHGyOw0arxk0qmSP1YuE="; | ||||
| }; | ||||
|
|
||||
| # depends on pytest-pep8 which is abandoned, not going to bother | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are there integration or just liting tests? pythonImportsCheck? |
||||
| doCheck = false; | ||||
|
|
||||
| preBuild = '' | ||||
| sed "s|tests_require=tests_require,||g" -i setup.py | ||||
| sed "s|extras_require=extras_require,||g" -i setup.py | ||||
| sed "s|setup_requires=setup_requires,||g" -i setup.py | ||||
| ''; | ||||
|
Comment on lines
+21
to
+25
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use postPatch and substituteInPlace. |
||||
|
|
||||
| propagatedBuildInputs = [ | ||||
| flask | ||||
| ]; | ||||
|
|
||||
| meta = with lib; { | ||||
| homepage = "https://github.com/zzzsochi/Flask-Gravatar"; | ||||
| description = "Small and simple integration of gravatar into flask"; | ||||
| license = licenses.bsd3; | ||||
| platforms = platforms.all; | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
| maintainers = with maintainers; [ mkg20001 ]; | ||||
| }; | ||||
| } | ||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,37 @@ | ||||||
| { lib | ||||||
| , buildPythonPackage | ||||||
| , fetchPypi | ||||||
| , pythonAtLeast | ||||||
| , flask | ||||||
| , pytest | ||||||
| , pytest-runner | ||||||
| }: | ||||||
|
|
||||||
| buildPythonPackage rec { | ||||||
| pname = "Flask-Paranoid"; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| version = "0.2.0"; | ||||||
|
|
||||||
| src = fetchPypi { | ||||||
| inherit pname version; | ||||||
| sha256 = "ou6SV2QuAlTxFXikqlShpyUWemQc+gh5Mw1HfsNwx0k="; | ||||||
| }; | ||||||
|
|
||||||
| propagatedBuildInputs = [ | ||||||
| flask | ||||||
| ]; | ||||||
|
|
||||||
| checkInputs = [ | ||||||
| pytest | ||||||
| pytest-runner | ||||||
|
Comment on lines
+24
to
+25
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use pytestCheckHook and patchout pytest-runner. |
||||||
| ]; | ||||||
|
|
||||||
| doCheck = false; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why? pythonImportsCheck? |
||||||
|
|
||||||
| meta = with lib; { | ||||||
| homepage = "https://github.com/miguelgrinberg/flask-paranoid/"; | ||||||
| description = "Simple user session protection"; | ||||||
| license = licenses.mit; | ||||||
| platforms = platforms.all; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| maintainers = with maintainers; [ mkg20001 ]; | ||||||
| }; | ||||||
| } | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,49 @@ | ||||||
| { lib | ||||||
| , buildPythonPackage | ||||||
| , fetchPypi | ||||||
| , pythonAtLeast | ||||||
| , flask | ||||||
| , blinker | ||||||
| , itsdangerous | ||||||
| , flask_principal | ||||||
| , passlib | ||||||
| , email_validator | ||||||
| , flask_wtf | ||||||
| , flask_login | ||||||
| , pytest | ||||||
| }: | ||||||
|
|
||||||
| buildPythonPackage rec { | ||||||
| pname = "Flask-Security-Too"; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| version = "4.0.1"; | ||||||
|
|
||||||
| src = fetchPypi { | ||||||
| inherit pname version; | ||||||
| sha256 = "wpZ/zgjL4qHGrajqr8cXYm2Q8pbvp6F/hZwT9Gv+8eA="; | ||||||
| }; | ||||||
|
|
||||||
| propagatedBuildInputs = [ | ||||||
| flask | ||||||
| flask_login | ||||||
| flask_principal | ||||||
| flask_wtf | ||||||
| email_validator | ||||||
| itsdangerous | ||||||
| passlib | ||||||
| blinker | ||||||
| ]; | ||||||
|
|
||||||
| doCheck = false; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do an pythonImportsCheck? |
||||||
|
|
||||||
| checkInputs = [ | ||||||
| pytest | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| ]; | ||||||
|
|
||||||
| meta = with lib; { | ||||||
| homepage = "https://pypi.org/project/Flask-Security-Too/"; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| description = "Simple security for Flask apps (fork)"; | ||||||
| license = licenses.mit; | ||||||
| platforms = platforms.all; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| maintainers = with maintainers; [ mkg20001 ]; | ||||||
| }; | ||||||
| } | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,30 @@ | ||||||
| { lib | ||||||
| , buildPythonPackage | ||||||
| , fetchPypi | ||||||
| , pythonAtLeast | ||||||
| , tox | ||||||
| }: | ||||||
|
|
||||||
| buildPythonPackage rec { | ||||||
| pname = "httpagentparser"; | ||||||
| version = "1.9.1"; | ||||||
|
|
||||||
| src = fetchPypi { | ||||||
| inherit pname version; | ||||||
| sha256 = "73Y9MZk912GCWs7myLNL4yuVzxZ10cc8PNNfnlKDGyY="; | ||||||
| }; | ||||||
|
|
||||||
| checkInputs = [ | ||||||
| tox | ||||||
| ]; | ||||||
|
|
||||||
| doCheck = false; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are tests disabled? Can we do a pythonImportsCheck? |
||||||
|
|
||||||
| meta = with lib; { | ||||||
| homepage = "https://pypi.org/project/httpagentparser/"; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| description = "Extracts OS Browser etc information from http user agent string"; | ||||||
| license = licenses.mit; | ||||||
| platforms = platforms.all; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| maintainers = with maintainers; [ mkg20001 ]; | ||||||
| }; | ||||||
| } | ||||||
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,22 @@ | ||||||||||||
| { lib | ||||||||||||
| , buildPythonPackage | ||||||||||||
| , fetchPypi | ||||||||||||
| }: | ||||||||||||
|
|
||||||||||||
| buildPythonPackage rec { | ||||||||||||
| pname = "speaklater3"; | ||||||||||||
| version = "1.4"; | ||||||||||||
|
|
||||||||||||
| src = fetchPypi { | ||||||||||||
| inherit pname version; | ||||||||||||
| sha256 = "ySYdS2taMEZyMS0esImb4Cj6yRdgGQqA/szTHTo7UEI="; | ||||||||||||
| }; | ||||||||||||
|
|
||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing pythonImportsCheck and checkPhase. |
||||||||||||
| meta = with lib; { | ||||||||||||
| description = "Implements a lazy string for python useful for use with gettext"; | ||||||||||||
| homepage = "https://github.com/mitsuhiko/speaklater"; | ||||||||||||
| license = licenses.bsd0; | ||||||||||||
| maintainers = with maintainers; [ mkg20001 ]; | ||||||||||||
| }; | ||||||||||||
|
|
||||||||||||
| } | ||||||||||||
|
Comment on lines
+20
to
+22
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,73 @@ | ||||||||
| { stdenv | ||||||||
| , lib | ||||||||
| , python3 | ||||||||
| , fetchurl | ||||||||
| , zlib | ||||||||
| , python3Packages | ||||||||
| }: | ||||||||
|
|
||||||||
| python3Packages.buildPythonApplication rec { | ||||||||
| pname = "pgadmin"; | ||||||||
| version = "5.4"; | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
|
||||||||
| src = fetchurl { | ||||||||
| url = "https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v${version}/source/pgadmin4-${version}.tar.gz"; | ||||||||
| sha256 = "N0+fnS0ndH/bqwVMra6kSvKoxRCGPCvLs8aZ0PvWv0o="; | ||||||||
| }; | ||||||||
|
|
||||||||
| # from Dockerfile | ||||||||
| CPPFLAGS="-DPNG_ARM_NEON_OPT=0"; | ||||||||
|
|
||||||||
| format = "other"; | ||||||||
|
|
||||||||
|
Comment on lines
+21
to
+22
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| postPatch = '' | ||||||||
| # sed -r 's|LC_ALL=en_US.UTF-8.* Makefile.sphinx .*$|true|g' -i Makefile | ||||||||
| patchShebangs . | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please specify the files/directories that need patching? |
||||||||
| ''; | ||||||||
|
|
||||||||
| buildInputs = [ | ||||||||
| zlib | ||||||||
| ]; | ||||||||
|
|
||||||||
| propagatedBuildInputs = with python3Packages; [ | ||||||||
| flask | ||||||||
| flask-gravatar | ||||||||
| flask_login | ||||||||
| flask_mail | ||||||||
| flask_migrate | ||||||||
| flask_sqlalchemy | ||||||||
| flask_wtf | ||||||||
| flask-compress | ||||||||
| passlib | ||||||||
| pytz | ||||||||
| simplejson | ||||||||
| six | ||||||||
| (lib.hiPrio speaklater3) | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why does this need to be hiPrio? |
||||||||
| sqlparse | ||||||||
| wtforms | ||||||||
| flask-paranoid | ||||||||
| psutil | ||||||||
| psycopg2 | ||||||||
| python-dateutil | ||||||||
| sqlalchemy | ||||||||
| itsdangerous | ||||||||
| flask-security-too | ||||||||
| bcrypt | ||||||||
| cryptography | ||||||||
| sshtunnel | ||||||||
| ldap3 | ||||||||
| flask-babelex | ||||||||
| gssapi | ||||||||
| flask-socketio | ||||||||
| eventlet | ||||||||
| httpagentparser | ||||||||
| user-agents | ||||||||
| ]; | ||||||||
|
|
||||||||
| meta = with lib; { | ||||||||
| description = "Administration and development platform for PostgreSQL"; | ||||||||
| homepage = "https://www.pgadmin.org/"; | ||||||||
| license = licenses.mit; | ||||||||
| maintainers = with maintainers; [ mkg20001 ]; | ||||||||
| }; | ||||||||
| } | ||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31183,7 +31183,9 @@ in | |
|
|
||
| pgmanage = callPackage ../applications/misc/pgmanage { }; | ||
|
|
||
| pgadmin = callPackage ../applications/misc/pgadmin { | ||
| pgadmin4 = callPackage ../tools/admin/pgadmin { }; | ||
|
|
||
| pgadmin3 = callPackage ../applications/misc/pgadmin { | ||
|
Comment on lines
+31186
to
+31188
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please move the files to one place and append version numbers to the directories. |
||
| openssl = openssl_1_0_2; | ||
| }; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.