Skip to content

python312Packages.webassets: drop nose dependency#334483

Closed
Sigmanificient wants to merge 2 commits intoNixOS:masterfrom
Sigmanificient:webassets
Closed

python312Packages.webassets: drop nose dependency#334483
Sigmanificient wants to merge 2 commits intoNixOS:masterfrom
Sigmanificient:webassets

Conversation

@Sigmanificient
Copy link
Member

@Sigmanificient Sigmanificient commented Aug 13, 2024

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Aug 13, 2024
@ofborg ofborg bot requested a review from abbradar August 13, 2024 22:50
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Aug 13, 2024
Copy link
Member

Choose a reason for hiding this comment

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

Did you try adding setuptools?

Copy link
Member Author

Choose a reason for hiding this comment

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

in nativeCheckInputs?

Copy link
Member Author

Choose a reason for hiding this comment

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

Still the same outcome:

____________________ ERROR collecting tests/test_filters.py ____________________
ImportError while importing test module '/build/webassets-2.0/tests/test_filters.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/l014xp1qxdl6gim3zc0jv3mpxhbp346s-python3-3.12.4/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_filters.py:15: in <module>
    from distutils.spawn import find_executable
E   ModuleNotFoundError: No module named 'distutils'

Copy link
Member

Choose a reason for hiding this comment

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

Try adding distutils to dependencies or nativeCheckInputs as appropriate.

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Aug 31, 2024
Copy link
Member

@emilazy emilazy left a comment

Choose a reason for hiding this comment

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

Result of nixpkgs-review pr 334483 run on aarch64-linux 1

12 packages failed to build:
  • octoprint
  • octoprint.dist
  • pyload-ng
  • pyload-ng.dist
  • python311Packages.dukpy
  • python311Packages.dukpy.dist
  • python311Packages.flask-assets
  • python311Packages.flask-assets.dist
  • python312Packages.dukpy
  • python312Packages.dukpy.dist
  • python312Packages.flask-assets
  • python312Packages.flask-assets.dist
4 packages built:
  • python311Packages.webassets
  • python311Packages.webassets.dist
  • python312Packages.webassets
  • python312Packages.webassets.dist
substituteStream() in derivation python3.12-flask-assets-2.1.0: ERROR: pattern static_path= doesn't match anything in file 'tests/test_integration.py'

@emilazy
Copy link
Member

emilazy commented Oct 14, 2024

@pyrox0 Did you want to handle this one too? Looks like the existing substitutions need updating or dropping.

@pyrox0
Copy link
Member

pyrox0 commented Oct 14, 2024

Submitted #348621, which builds on top of this PR and solves outstanding review comments.

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. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants