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

changeme: init at 1.2.3 #325188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

changeme: init at 1.2.3 #325188

wants to merge 1 commit into from

Conversation

Tochiaha
Copy link
Contributor

@Tochiaha Tochiaha commented Jul 7, 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.

@Tochiaha
Copy link
Contributor Author

Tochiaha commented Jul 7, 2024

@fabaff any fixes for cerberus in this scenario.

@JohnAZoidberg
Copy link
Member

Do you use this?
It seems the project hasn't been updated in 4 years.

@Tochiaha
Copy link
Contributor Author

Tochiaha commented Jul 7, 2024

Do you use this? It seems the project hasn't been updated in 4 years.

I currently do

@fabaff
Copy link
Member

fabaff commented Jul 7, 2024

@fabaff any fixes for cerberus in this scenario.

Sorry, i can't follow. Can you please be more specific?

@Tochiaha
Copy link
Contributor Author

@SuperSandro2000

checkPhase = ''
# allow to find the module helper during the test run
export PYTHONPATH=$PYTHONPATH:$PWD/tests
py.test changeme/tests
Copy link
Member

Choose a reason for hiding this comment

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

Please rely on pytestCheckHook and move the export to preCheck

pkgs/by-name/ch/changeme/package.nix Outdated Show resolved Hide resolved
Comment on lines +73 to +70
mkdir -p $out/{bin,share/changeme}
cp -R * $out/share/changeme
Copy link
Member

Choose a reason for hiding this comment

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

Are those files not installed by python?

pkgs/by-name/ch/changeme/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/ch/changeme/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/ch/changeme/package.nix Outdated Show resolved Hide resolved
@Tochiaha Tochiaha force-pushed the changeme branch 2 times, most recently from 870f67b to 05dfa5b Compare July 18, 2024 16:53
pkgs/by-name/ch/changeme/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/ch/changeme/package.nix Outdated Show resolved Hide resolved
@Tochiaha Tochiaha force-pushed the changeme branch 2 times, most recently from d63560a to 003b23e Compare August 17, 2024 00:27
Copy link
Member

@natsukium natsukium left a comment

Choose a reason for hiding this comment

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

Since this package doesn't follow the standard Python packaging, we want to ensure it works using testers.testVersion or similar.

Comment on lines +27 to +28
build-system = with python3Packages; [ setuptools ];

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
build-system = with python3Packages; [ setuptools ];

There is no pyproject.toml or setup.py.

logutils
lxml
netaddr
nose
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
nose

nose is a test dependency, and it should not be added to inputs.
see #326513

Comment on lines +79 to +81
makeWrapper "${python3Packages.python.interpreter}" "$out/bin/changeme" \
--set PYTHONPATH "$out/share/changeme/changeme.py" \
--add-flags "$out/share/changeme/changeme.py"
Copy link
Member

Choose a reason for hiding this comment

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

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.

6 participants