Skip to content
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

Eduvpn client: init at 1.0.1 #36122

Closed
wants to merge 1 commit into from
Closed

Conversation

leenaars
Copy link
Contributor

@leenaars leenaars commented Feb 28, 2018

Motivation for this change

A user-friendly tool for people inside educational and research institutions to set up their VPN networks. Useful for many people to protect against rogue networks, snooping etc.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@Mic92
Copy link
Member

Mic92 commented Feb 28, 2018

@GrahamcOfBorg build eduvpn-client

@Mic92
Copy link
Member

Mic92 commented Feb 28, 2018

@GrahamcOfBorg build pythonPackages.eduvpn-client python3Packages.eduvpn-client

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

Package ‘NetworkManager-openvpn-gnome-1.8.0’ in /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/tools/networking/network-manager/openvpn.nix:38 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

error: attribute 'eduvpn-client' in selection path 'pythonPackages.eduvpn-client' not found

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Partial log (click to expand)

    return self.obtain(req, installer)
  File "/nix/store/h4gag637wxnip0wcfc4n2hngixq565sz-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1158, in obtain
    return installer(requirement)
  File "/nix/store/h4gag637wxnip0wcfc4n2hngixq565sz-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/setuptools/dist.py", line 528, in fetch_build_egg
    return cmd.easy_install(req)
  File "/nix/store/h4gag637wxnip0wcfc4n2hngixq565sz-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 667, in easy_install
    raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
builder for ‘/nix/store/azi911lanamwcy1ai39j8zsgpyrrr7p6-eduvpn-client-1.0rc11.drv’ failed with exit code 1
error: build of ‘/nix/store/azi911lanamwcy1ai39j8zsgpyrrr7p6-eduvpn-client-1.0rc11.drv’ failed

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Partial log (click to expand)

error: attribute ‘eduvpn-client’ in selection path ‘pythonPackages.eduvpn-client’ not found

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

�[31;1merror:�[0m attribute 'eduvpn-client' in selection path 'pythonPackages.eduvpn-client' not found

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

    return self.obtain(req, installer)
  File "/nix/store/grysm67ssvcr3irfwnbi1qhvs4929cl5-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1158, in obtain
    return installer(requirement)
  File "/nix/store/grysm67ssvcr3irfwnbi1qhvs4929cl5-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/setuptools/dist.py", line 528, in fetch_build_egg
    return cmd.easy_install(req)
  File "/nix/store/grysm67ssvcr3irfwnbi1qhvs4929cl5-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 667, in easy_install
    raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
builder for '/nix/store/xjjym671cnhsybhwmmgdh6ms49c9jaai-eduvpn-client-1.0rc11.drv' failed with exit code 1
�[31;1merror:�[0m build of '/nix/store/xjjym671cnhsybhwmmgdh6ms49c9jaai-eduvpn-client-1.0rc11.drv' failed

pytest pytestrunner mock
];

nativeBuildInputs = [ wrapGAppsHook ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pytestrunner needs to be moved here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -21199,6 +21199,8 @@ EOF
};
};

eduvpn-client = callPackage ../applications/networking/python-eduvpn-client { };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want this to live inside pythonPackages, then default.nix would need to be moved to developments/python-modules/eduvpn-client and the python dependencies would have to be specified as arguments.
However, I think if the API is not used we shouldn't have it inside pythonPackages. The package supporting multiple python versions isn't an arguments because we can simply override pythonPackages = python3Packages.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Mic92 What's your opinion?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leenaars You would need to address this before the PR can be merged. Everything that belongs to python-packages.nix resides in development/python-modules, so you would need to move the expression to developments/python-modules/eduvpn-client as suggested above. Other option is to move eduvpn-client back to all-packages.nix and keep it at tools/networking/, that should be ok only if we assume that nobody is going to use the API from this package.

@leenaars leenaars changed the title Eduvpn client: init at 1.0rc11 Eduvpn client: init at 1.0rc16 Aug 1, 2018
@leenaars leenaars changed the title Eduvpn client: init at 1.0rc16 Eduvpn client: init at 1.0.1 Sep 3, 2018
@leenaars leenaars force-pushed the eduvpn-client branch 2 times, most recently from 8e0fb07 to e863977 Compare September 3, 2018 22:22
requests_oauthlib six repoze_lru pillow qrcode pytestrunner
];

# Checks need X environment
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Providing a headless X11 environment shouldn't be a problem. For me it seems to require networkmanager first:

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files

--replace "/usr/local" "$out"
'';

checkInputs = with pythonPackages; [ pytest mock pytestrunner ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we can't run tests, we don't need checkInputs.

Copy link
Member

@FRidh FRidh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The location is still incorrect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants