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

pythonPackages.autograd-gamma: init at 0.4.1 #79267

Closed
wants to merge 1 commit into from

Conversation

arnoldfarkas
Copy link
Contributor

Motivation for this change

Packaging Python module autograd-gamma in Nix.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

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

otherwise LGTM


buildPythonPackage rec {
pname = "autograd-gamma";
version = "0.4.1";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
version = "0.4.1";
version = "0.4.1";
disabled = isPy27;

some of the syntax isn't compatible with python2.

warning: ignoring the user-specified setting 'sandbox', because it is a restricted setting and you are not a trusted user
builder for '/nix/store/zw4pdpd4jgc4xynjk42w5p2i2p9ijscp-python2.7-autograd-gamma-0.4.1.drv' failed with exit code 2; last 10 log lines:
  /nix/store/amv9br0s7xxyr1qipqjqbss5jpdcvha7-python2.7-pytest-4.6.8/lib/python2.7/site-packages/_pytest/assertion/rewrite.py:304: in load_module
      exec(co, mod.__dict__)
  tests/test_autograd_gamma.py:8: in <module>
      from autograd_gamma import gammainc, gammaincc, betainc
  E     File "/nix/store/xgg1rh2dr8h78fx554fa50b8k1bn9dbx-python2.7-autograd-gamma-0.4.1/lib/python2.7/site-packages/autograd_gamma/__init__.py", line 47
  E       new_f = lambda x, *args: f(*args[:argnum], x, *args[argnum:])
  E                                                     ^
  E   SyntaxError: invalid syntax
  !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
  =========================== 1 error in 0.83 seconds ============================
cannot build derivation '/nix/store/97plly7pbhl6hvrbb8a7j7f0r6vsinwd-env.drv': 1 dependencies couldn't be built

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

2 participants