vlaci / openconnect-sso

Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication to Cisco SSL-VPNs
GNU General Public License v3.0
279 stars 119 forks source link

Remove deprecated pytestrunner alias #100

Closed hexop closed 1 year ago

hexop commented 1 year ago

The package doesn't build anymore after this commit on NixOS. This PR renames the alias which fixes the build of the package on a recent NixOS version. Fixes #98

DavSanchez-DPT commented 1 year ago

Hi,

I'm finding issues to build this:

error: builder for '/nix/store/va8dv0wl9n2ynsvmr4hjg7gi1gpnj3ab-python3.10-pyparsing-2.4.7.drv' failed with exit code 2;
       last 10 log lines:
       >   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
       >   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
       >   File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
       >   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
       >   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
       >   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
       >   File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
       > ModuleNotFoundError: No module named 'setuptools'
       >
       >
       For full logs, run 'nix log /nix/store/va8dv0wl9n2ynsvmr4hjg7gi1gpnj3ab-python3.10-pyparsing-2.4.7.drv'.
error: 1 dependencies of derivation '/nix/store/kb14v93h5rrjr9vsvxrxnf2qnj53ac4x-python3.10-packaging-20.9.drv' failed to build
error: 1 dependencies of derivation '/nix/store/zwxmija1n13vcnqlixwp483v4dlbnjb7-python3.10-poetry-1.1.14.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vngipha4lh31aw0d66bcgh59qx1mif11-python3.10-setuptools-scm-7.0.5.drv' failed to build
error: 1 dependencies of derivation '/nix/store/j0cmdail994nazjqim2nmi8lbqcd5785-python3.10-openconnect-sso-0.8.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jdpv2c8pc8f80qnmp4ldigs8wz9wj664-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/l15p9prpidlhvgdf510iy381as5cm03j-home-manager-generation.drv' failed to build

Contents of nix log /nix/store/va8dv0wl9n2ynsvmr4hjg7gi1gpnj3ab-python3.10-pyparsing-2.4.7.drv

I'm using nixpkgs-unstable. Any chance I can inject the needed setuptools as a buildInput or something? Not very knowledgeable yet about Nix. Regards!

hexop commented 1 year ago

It seems to be broken upstream, I am not sure how to have a workaround right now (my nix-fu isn't great either)

I am now following this issue and hoping that it will be resolved soon, apparently poetry changed their package and now poetry2nix doesn't work anymore.

hexop commented 1 year ago

I've updated my fork by removing the dev dependency coverage_enable_subprocess, and now it seems to build with the latest nixpkgs. This is available on this branch which you can use now as a workaround until it's fixed upstream