datakurre / pip2nix

Freeze pip-installable packages into Nix expressions [maintainer=@datakurre]
3 stars 1 forks source link

No cli option for disabling the generation of check dependencies #16

Closed datakurre closed 4 years ago

datakurre commented 4 years ago

We really don't want the test packages in this case as it makes our build really big. We might just end up with a fork to handle that case then.

datakurre commented 4 years ago

@marcinkuzminski At https://github.com/datakurre/pip2nix/issues/9 you reported that pip2nix includes packages' test dependencies in the results.

Would you be able to provide an example of a package that causes this to happen?

For me it seems that resolving of test dependencies is still broken / completely missing. Just by trying a few popular packages, I was not able to find a package that caused result to include it tests dependencies.

marcinkuzminski commented 4 years ago

You mean checkInputs where always empty? We had most of the packages add checkInputs when generating non-wheel source packages.

datakurre commented 4 years ago

@marcinkuzminski Ok. Possibly there are some differences between pip versions.

I guess, I should try to reproduce with different nixpkgs versions.

datakurre commented 4 years ago

I still have no idea, how I manage use pip2nix myself so that it does not generate checkInputs. While debugging my project without and the other project with checkInputs, all configuration looked the same, all package versions were the same and still the other build had tests_requires.txt generated by pip for checkInputs and the other project did not. Possibly something related to pip and environment variables.