Skip to content

pgadmin4: init at 5.4#128986

Closed
mkg20001 wants to merge 6 commits intoNixOS:masterfrom
mkg20001:pgadmin
Closed

pgadmin4: init at 5.4#128986
mkg20001 wants to merge 6 commits intoNixOS:masterfrom
mkg20001:pgadmin

Conversation

@mkg20001
Copy link
Member

@mkg20001 mkg20001 commented Jul 2, 2021

Motivation for this change

An attempt to package pgadmin4

NOTE: Currently does not work, but it's pretty close

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Relase notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Jul 2, 2021
@cole-h
Copy link
Member

cole-h commented Jul 2, 2021

@ofborg eval

(Sorry, ofborg's certs recently had an issue, meaning that it was unable to
react to PRs. This has been fixed, but all PRs filed in this period will need
ofborg to be manually kicked off.)

@ofborg ofborg bot added 8.has: clean-up This PR removes packages or removes other cruft 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Jul 2, 2021
Comment on lines +31186 to +31188
pgadmin4 = callPackage ../tools/admin/pgadmin { };

pgadmin3 = callPackage ../applications/misc/pgadmin {
Copy link
Member

Choose a reason for hiding this comment

The 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.

pytz
simplejson
six
(lib.hiPrio speaklater3)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this need to be hiPrio?


postPatch = ''
# sed -r 's|LC_ALL=en_US.UTF-8.* Makefile.sphinx .*$|true|g' -i Makefile
patchShebangs .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please specify the files/directories that need patching?

Comment on lines +21 to +22
format = "other";

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
format = "other";


python3Packages.buildPythonApplication rec {
pname = "pgadmin";
version = "5.4";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version = "5.4";
version = "5.4";
format = "other";

}:

buildPythonPackage rec {
pname = "Flask-Paranoid";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pname = "Flask-Paranoid";
pname = "flask-paranoid";

homepage = "https://github.com/zzzsochi/Flask-Gravatar";
description = "Small and simple integration of gravatar into flask";
license = licenses.bsd3;
platforms = platforms.all;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
platforms = platforms.all;

Comment on lines +21 to +25
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
'';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use postPatch and substituteInPlace.

sha256 = "YGZfMcLGEokdto/4Aek+06CIHGyOw0arxk0qmSP1YuE=";
};

# depends on pytest-pep8 which is abandoned, not going to bother
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there integration or just liting tests? pythonImportsCheck?

}:

buildPythonPackage rec {
pname = "Flask-Gravatar";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pname = "Flask-Gravatar";
pname = "flask-gravatar";

@1000101
Copy link
Member

1000101 commented Oct 20, 2021

@mkg20001 are you still working on this and/or need some help with testing?

@mkg20001
Copy link
Member Author

I'm no longer actively working on this PR, but feel free to pickup where I've left off

If you have commit access to nixpkgs you should be able to push directly to this fork's branch

@gador gador mentioned this pull request Jan 12, 2022
13 tasks
@gador
Copy link
Member

gador commented Jan 12, 2022

@mkg20001
I used your PR as a basis and just submitted a PR with a working 6.3 version of pgadmin4. Maybe you find time to have a look at it? Thanks

@mkg20001
Copy link
Member Author

Superseded by #154764

@mkg20001 mkg20001 closed this Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: clean-up This PR removes packages or removes other cruft 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants