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.pytest-dependency: fix build #60280
Conversation
@@ -9,7 +9,16 @@ buildPythonPackage rec { | |||
sha256 = "bda0ef48e6a44c091399b12ab4a7e580d2dd8294c222b301f88d7d57f47ba142"; | |||
}; | |||
|
|||
propagatedBuildInputs = [ pytest ]; | |||
nativeBuildInputs = [ pytest ]; |
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.
If you do this it doesn't add pytest
to result/nix-support/propagated-build-inputs
.
Since it's in the install_requires
of pytest-dependency I think that is desirable.
What I'd suggest, is to add pytest
to propagatedBuildInputs
and checkInputs
.
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.
you're right, fixed. thanks!
a6df1ae
to
8d0e3ad
Compare
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.
Builds properly and I can import it in a Python shell. Not sure if it does the right thing.
I trust that you tried to use the package and it works?
I use pytest-dependency prior to this and I had put |
So you think this PR is correct? |
@GrahamcOfBorg build python2.pkgs.pytest-dependency python3.pkgs.pytest-dependency |
@@ -9,8 +9,19 @@ buildPythonPackage rec { | |||
sha256 = "bda0ef48e6a44c091399b12ab4a7e580d2dd8294c222b301f88d7d57f47ba142"; | |||
}; | |||
|
|||
patches = [ |
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.
What does this patch do? Please comment about it.
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 think the comment is good enough. There's not really a lot to say about the patch.
Please backport this to 19.03. |
Motivation for this change
Fixes #60239
cc: @CMCDragonkai
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)