Skip to content
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

python310Packages.flask-wtf: fix failing build #190680

Merged
merged 2 commits into from
Sep 10, 2022

Conversation

anthonyroussel
Copy link
Member

@anthonyroussel anthonyroussel commented Sep 10, 2022

Description of changes
  • Fix failing build of flask-wtf

    • Caused by a failing test since Flask has been upgraded to 2.2
    • Disabled the failing test and we should wait for a fix to patch this issue upstream
    • I will create a PR soon on the Flask WTF repository to fix that: pallets-eco/flask-wtf@ea0ba03
  • Added myself to maintainers

Fixes the flask-wtf failing build on the staging-next PR/branch: #188284

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release 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
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@anthonyroussel
Copy link
Member Author

Pull request opened on the Flask WTF repository: pallets-eco/flask-wtf#533

@anthonyroussel
Copy link
Member Author

@ofborg build calibre-web

@anthonyroussel
Copy link
Member Author

Result of nixpkgs-review pr 190680 run on x86_64-linux 1

3 packages marked as broken and skipped:
  • apache-airflow
  • python310Packages.apache-airflow
  • python39Packages.apache-airflow
5 packages failed to build:
  • pgadmin4
  • python310Packages.flask-admin
  • python310Packages.ihatemoney
  • python39Packages.flask-admin
  • python39Packages.ihatemoney
10 packages built:
  • archivy
  • calibre-web
  • python310Packages.flask-appbuilder
  • python310Packages.flask-mongoengine
  • python310Packages.flask-security-too
  • python310Packages.flask-wtf
  • python39Packages.flask-appbuilder
  • python39Packages.flask-mongoengine
  • python39Packages.flask-security-too
  • python39Packages.flask-wtf

@anthonyroussel
Copy link
Member Author

@ofborg build pgadmin4 python310Packages.flask-admin python310Packages.ihatemoney apache-airflow python310Packages.apache-airflow

@anthonyroussel
Copy link
Member Author

anthonyroussel commented Sep 10, 2022

pgadmin build will be fixed with #188575

6.13 requires Werkzeug 2.1

@risicle
Copy link
Contributor

risicle commented Sep 10, 2022

Arguably you could just pull your fix as a patch, we may forget to ever remove the test disablement.

@@ -32,10 +32,14 @@ buildPythonPackage rec {
pytestCheckHook
];

disabledTests = [
"test_set_default_message_language"
Copy link
Member

Choose a reason for hiding this comment

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

Please add a comment why this test is disabled

Copy link
Member Author

Choose a reason for hiding this comment

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

Arguably you could just pull your fix as a patch, we may forget to ever remove the test disablement.

Thanks for the review.
I removed this disabled test and use the fix as a patch in the package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants