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.pykeepass: fix build #56675

Merged
merged 2 commits into from Mar 2, 2019
Merged

Conversation

terlar
Copy link
Contributor

@terlar terlar commented Mar 2, 2019

Add missing dependency future

It turns out a dependency was added in the latest patch version.
pschmitt/pykeepass@3.0.2...3.0.3

Motivation for this change

This package build is currently broken on master. Fixes #56612

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@@ -15,6 +16,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
lxml pycryptodome construct
argon2_cffi dateutil enum34
Copy link
Member

Choose a reason for hiding this comment

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

enum34 seems to have been removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

One would think so, since it is not in the specified dependencies, but it is still required to build this package, this is the output with enum34 removed:

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Processing ./pykeepass-3.0.3-py2-none-any.whl
Requirement already satisfied: lxml in /nix/store/8mhziwf7vpmnk013zqs68jhmpk58iih5-python2.7-lxml-4.3.1/lib/python2.7/site-packages (from pykeepass==3.0.3) (4.3.1)
Requirement already satisfied: construct in /nix/store/pv8pyazg28w9d2p4snfq4mwf3kzg0q0z-python2.7-construct-2.9.45/lib/python2.7/site-packages (from pykeepass==3.0.3) (2.9.45)
Requirement already satisfied: pycryptodome in /nix/store/pz0b5hrdbgnfcfyvdr065vfsnj48cllz-python2.7-pycryptodome-3.7.3/lib/python2.7/site-packages (from pykeepass==3.0.3) (3.7.3)
Requirement already satisfied: argon2-cffi in /nix/store/q1jhvxiw14byyzfymb08slln2hklm38y-python2.7-argon2_cffi-19.1.0/lib/python2.7/site-packages (from pykeepass==3.0.3) (19.1.0)
Requirement already satisfied: future in /nix/store/dpa5hy4shh8qknkkr83mb5r6my7cfnaf-python2.7-future-0.17.1/lib/python2.7/site-packages (from pykeepass==3.0.3) (0.17.1)
Requirement already satisfied: python-dateutil in /nix/store/lpdclq0k00v6npdzl0hrdfxavr506n3b-python2.7-python-dateutil-2.8.0/lib/python2.7/site-packages (from pykeepass==3.0.3) (2.8.0)
Requirement already satisfied: six in /nix/store/2i40ny9bh5rxismw58kz723j9lh64fxr-python2.7-six-1.12.0/lib/python2.7/site-packages (from argon2-cffi->pykeepass==3.0.3) (1.12.0)
Requirement already satisfied: cffi>=1.0.0 in /nix/store/43vsgf68g8knf6886vxjfcm5irqwbs34-python2.7-cffi-1.12.1/lib/python2.7/site-packages (from argon2-cffi->pykeepass==3.0.3) (1.12.1)
Collecting enum34 (from argon2-cffi->pykeepass==3.0.3)
  Could not find a version that satisfies the requirement enum34 (from argon2-cffi->pykeepass==3.0.3) (from versions: )
No matching distribution found for enum34 (from argon2-cffi->pykeepass==3.0.3)
builder for '/nix/store/6q0k9kmvcdh0l6a9f5nr8qw89pf0hd0l-python2.7-pykeepass-3.0.3.drv' failed with exit code 1
error: build of '/nix/store/6q0k9kmvcdh0l6a9f5nr8qw89pf0hd0l-python2.7-pykeepass-3.0.3.drv' failed

Seems it is an unspecified dependency of argon2_cffi.

Thanks for catching this, I will update with a new commit.

@dotlambda dotlambda changed the title python: pykeepass: fix build pythonPackages.pykeepass: fix build Mar 2, 2019
@dotlambda
Copy link
Member

@GrahamcOfBorg build python2.pkgs.pykeepass python3.pkgs.pykeepass

@dotlambda dotlambda merged commit e43f236 into NixOS:master Mar 2, 2019
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