-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
pythonPackages.regex: fix darwin build #36742
pythonPackages.regex: fix darwin build #36742
Conversation
@@ -13,11 +13,16 @@ buildPythonPackage rec { | |||
sha256 = "2353c0e983c4029caf32016f1dddef623c3117ac282a818468c6d2f5d541698d"; | |||
}; | |||
|
|||
postCheck = '' | |||
echo "We now run tests ourselves, since the setuptools installer doesn't." | |||
python -c 'import test_regex; test_regex.test_main();' |
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.
${python.interpreter}
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.
Just tried to fix this, but it seems the python attribute is not in scope. (undefined variable 'python'). Should python be included in the parameter list?
meta = { | ||
description = "Alternative regular expression module, to replace re"; | ||
homepage = https://bitbucket.org/mrabarnett/mrab-regex; | ||
license = lib.licenses.psfl; | ||
platforms = lib.platforms.linux; | ||
platforms = lib.platforms.unix; |
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.
this attribute can be dropped
The package works fine on darwin. We run some tests to prove this.
fb73da9
to
d289736
Compare
@FRidh Incorporated your suggestions. |
@GrahamcOfBorg build pythonPackages.regex |
No attempt on x86_64-darwin The following builds were skipped because they don't evaluate on x86_64-darwin: pythonPackages.regex No log is available. |
Success on x86_64-linux (full log) Attempted: pythonPackages.regex Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: pythonPackages.regex Partial log (click to expand)
|
Motivation for this change
18.03 ZHF darwin edition: #36454 (Please backport to 18.03!)
The package works fine on darwin. We run some tests to prove this.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)