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.fpylll: init at 0.3.0dev #38790

Merged
merged 2 commits into from Apr 14, 2018
Merged

Conversation

timokau
Copy link
Member

@timokau timokau commented Apr 11, 2018

Motivation for this change

This depends on #38781, do not merge before that.

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 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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

];

meta = {
description = "A Python interface for fpylll";
Copy link
Member

Choose a reason for hiding this comment

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

A Python interface for fplll

Copy link
Member

@dotlambda dotlambda left a comment

Choose a reason for hiding this comment

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

The website says

fpylll also relies on py.test for testing Python

Please specify an appropriate checkPhase.

@timokau
Copy link
Member Author

timokau commented Apr 13, 2018

I added the checkPhase, added a fplll upgrade that is necessary for fpylll and added a numpy dependency to pass the tests.

meta = {
description = "A Python interface for fplll";
homepage = https://github.com/fplll/fpylll;
maintainers = with lib.maintainers; [ timokau ];
Copy link
Member

Choose a reason for hiding this comment

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

License?

Copy link
Member Author

Choose a reason for hiding this comment

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

Added.

fplll
cython
cysignals
numpy
Copy link
Member

Choose a reason for hiding this comment

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

Some of these belong in propagatedBuildInputs.

description = "A Python interface for fplll";
homepage = https://github.com/fplll/fpylll;
maintainers = with lib.maintainers; [ timokau ];
license = lib.licenses.gpl2;
Copy link
Member

Choose a reason for hiding this comment

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

fpylll is licensed under the GPLv2+

https://github.com/fplll/fpylll#attribution--license

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, I only checked the LICENSE file.

@dotlambda
Copy link
Member

@GrahamcOfBorg build python2.pkgs.fpyll python3.pkgs.fpyll

@GrahamcOfBorg
Copy link

No attempt on x86_64-linux (full log)

The following builds were skipped because they don't evaluate on x86_64-linux: python2.pkgs.fpyll, python3.pkgs.fpyll

Partial log (click to expand)

Cannot nix-instantiate `python2.pkgs.fpyll' because:
error: attribute ‘fpyll’ in selection path ‘python2.pkgs.fpyll’ not found

Cannot nix-instantiate `python3.pkgs.fpyll' because:
error: attribute ‘fpyll’ in selection path ‘python3.pkgs.fpyll’ not found

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: python2.pkgs.fpyll, python3.pkgs.fpyll

Partial log (click to expand)

Cannot nix-instantiate `python2.pkgs.fpyll' because:
�[31;1merror:�[0m attribute 'fpyll' in selection path 'python2.pkgs.fpyll' not found

Cannot nix-instantiate `python3.pkgs.fpyll' because:
�[31;1merror:�[0m attribute 'fpyll' in selection path 'python3.pkgs.fpyll' not found

@dotlambda
Copy link
Member

@GrahamcOfBorg build python2.pkgs.fpyll python3.pkgs.fpylll

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: python3.pkgs.fpylll

The following builds were skipped because they don't evaluate on x86_64-linux: python2.pkgs.fpyll

Partial log (click to expand)

tests/test_numpy.py ..                                                   [ 70%]
tests/test_precision.py .                                                [ 75%]
tests/test_pruner.py .                                                   [ 79%]
tests/test_random.py .                                                   [ 83%]
tests/test_simple_bkz.py ..                                              [ 91%]
tests/test_strategies.py .                                               [ 95%]
tests/test_util.py .                                                     [100%]

========================== 24 passed in 21.62 seconds ==========================
/nix/store/zmkqa0y4dqba09z2wppw5dssnm4qpgc6-python3.6-fpylll-0.3.0dev

@dotlambda
Copy link
Member

@GrahamcOfBorg build python2.pkgs.fpylll python3.pkgs.fpylll

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: python2.pkgs.fpylll, python3.pkgs.fpylll

Partial log (click to expand)

tests/test_precision.py .                                                [ 75%]
tests/test_pruner.py .                                                   [ 79%]
tests/test_random.py .                                                   [ 83%]
tests/test_simple_bkz.py ..                                              [ 91%]
tests/test_strategies.py .                                               [ 95%]
tests/test_util.py .                                                     [100%]

========================== 24 passed in 20.36 seconds ==========================
/nix/store/fxxl73a71kq1kr7naxx0g4hf63zq4a9k-python2.7-fpylll-0.3.0dev
/nix/store/zmkqa0y4dqba09z2wppw5dssnm4qpgc6-python3.6-fpylll-0.3.0dev

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: python3.pkgs.fpylll

The following builds were skipped because they don't evaluate on aarch64-linux: python2.pkgs.fpyll

Partial log (click to expand)

                 from memoryviewattrs.cpp:580:
/nix/store/i8py6fv0irvkl3s3kndqpw8szl1rzcic-python3.6-numpy-1.14.2/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
acquired default
acquired Global_A
building of '/nix/store/l60jan1mgs2yd0lnkmsprzjapx4rynv9-python3.6-Cython-0.28.1.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/bc3rqbznfssmzrpc90wgm6aygjqpb60v-python3.6-cysignals-1.6.9.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/nmrkn3c8lb7yvvkd4a42g90grba3qyrg-python3.6-fpylll-0.3.0dev.drv': 2 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/nmrkn3c8lb7yvvkd4a42g90grba3qyrg-python3.6-fpylll-0.3.0dev.drv' failed

@timokau
Copy link
Member Author

timokau commented Apr 14, 2018

building of '/nix/store/l60jan1mgs2yd0lnkmsprzjapx4rynv9-python3.6-Cython-0.28.1.drv' timed out after 3600 seconds

Maybe ofBorg should indicate when a failure is due to a timeout.

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: python2.pkgs.fpylll, python3.pkgs.fpylll

Partial log (click to expand)

                 from memoryviewattrs.cpp:580:
/nix/store/i8py6fv0irvkl3s3kndqpw8szl1rzcic-python3.6-numpy-1.14.2/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
acquired default
acquired Global_A
building of '/nix/store/l60jan1mgs2yd0lnkmsprzjapx4rynv9-python3.6-Cython-0.28.1.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/bc3rqbznfssmzrpc90wgm6aygjqpb60v-python3.6-cysignals-1.6.9.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/nmrkn3c8lb7yvvkd4a42g90grba3qyrg-python3.6-fpylll-0.3.0dev.drv': 2 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/ibiqnqwa42cjpi1bpnfvvdclmjnzicfm-python2.7-fpylll-0.3.0dev.drv', '/nix/store/nmrkn3c8lb7yvvkd4a42g90grba3qyrg-python3.6-fpylll-0.3.0dev.drv' failed

@dotlambda dotlambda merged commit 2a09342 into NixOS:master Apr 14, 2018
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

3 participants