-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
pythonPackages.xlib: 0.17 -> 0.25, enable tests #57621
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
Conversation
}; | ||
|
||
# Tests require `pyutil' so disable them to avoid circular references. | ||
doCheck = false; | ||
doCheck = true; |
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.
That's set automatically.
doCheck = true; |
|
||
propagatedBuildInputs = [ six setuptools_scm pkgs.xorg.libX11 ]; | ||
checkPhase = '' | ||
python runtests.py |
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 runtests.py | |
${python.interpreter} runtests.py |
That's needed because e.g. PyPy has a different executable name.
''; | ||
|
||
checkInputs = [ mock nose utillinux /* mcookie */ xorg.xauth xorg.xorgserver /* xvfb */ ]; | ||
buildInputs = [ setuptools_scm ]; |
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.
I guess that should be nativeBuildInputs
.
|
||
checkInputs = [ mock nose utillinux /* mcookie */ xorg.xauth xorg.xorgserver /* xvfb */ ]; | ||
buildInputs = [ setuptools_scm ]; | ||
propagatedBuildInputs = [ six xorg.libX11 ]; |
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.
libX11
probably belongs in buildInputs
Thanks for feedback and explanation! Updated accordingly! :)
…On Thu, 14 Mar 2019 03:18:37 -0700, Robert Schütz ***@***.***> wrote:
dotlambda requested changes on this pull request.
> };
- # Tests require `pyutil' so disable them to avoid circular references.
- doCheck = false;
+ doCheck = true;
That's set automatically.
```suggestion
```
>
- propagatedBuildInputs = [ six setuptools_scm pkgs.xorg.libX11 ];
+ checkPhase = ''
+ python runtests.py
```suggestion
${python.interpreter} runtests.py
```
That's needed because e.g. PyPy has a different executable name.
>
- propagatedBuildInputs = [ six setuptools_scm pkgs.xorg.libX11 ];
+ checkPhase = ''
+ python runtests.py
+ '';
+
+ checkInputs = [ mock nose utillinux /* mcookie */ xorg.xauth xorg.xorgserver /* xvfb */ ];
+ buildInputs = [ setuptools_scm ];
I guess that should be `nativeBuildInputs`.
>
- propagatedBuildInputs = [ six setuptools_scm pkgs.xorg.libX11 ];
+ checkPhase = ''
+ python runtests.py
+ '';
+
+ checkInputs = [ mock nose utillinux /* mcookie */ xorg.xauth xorg.xorgserver /* xvfb */ ];
+ buildInputs = [ setuptools_scm ];
+ propagatedBuildInputs = [ six xorg.libX11 ];
`libX11` probably belongs in `buildInputs`
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#57621 (review) part: text/html
|
846fdbd
to
ec95b91
Compare
Nix-review revealed a build failure of plover, caused by removing setuptools_scm from propagatedBuildInputs. That's fixed now. |
https://github.com/python-xlib/python-xlib/releases/tag/0.25
(and the releases along the way)
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)